PromucFlow_constructor/app/server/appsmith-server/src/main/resources/application.properties

113 lines
5.2 KiB
Properties
Raw Normal View History

server.port=${PORT:8080}
# Allow the Spring context to close all active requests before shutting down the server
# Please ref: https://docs.spring.io/spring-boot/docs/2.3.0.RELEASE/reference/html/spring-boot-features.html#boot-features-graceful-shutdown
server.shutdown=graceful
spring.lifecycle.timeout-per-shutdown-phase=20s
spring.profiles.active=${ACTIVE_PROFILE:production}
2021-07-26 07:01:26 +00:00
# This property allows us to override beans during testing. This is useful when we want to set different configurations
# and different parameters during test as compared to production. If this property is disabled, some tests will fail.
spring.main.allow-bean-definition-overriding=true
spring.data.redis.repositories.enabled=false
#spring.main.web-application-type=reactive
2021-07-26 07:01:26 +00:00
# This property allows the server to run behind a proxy server and still resolve all the urls correctly
server.forward-headers-strategy=NATIVE
spring.data.mongodb.auto-index-creation=false
spring.data.mongodb.authentication-database=admin
# Ensures that the size of the request object that we handle is controlled. By default it's 212KB.
spring.codec.max-in-memory-size=150MB
appsmith.codec.max-in-memory-size=${APPSMITH_CODEC_SIZE:150}
# Log properties
logging.level.root=info
logging.level.com.appsmith=debug
logging.level.com.external.plugins=debug
logging.pattern.console=[%d{ISO8601, UTC}] %X - %m%n
#Spring security
spring.security.oauth2.client.registration.google.client-id=${APPSMITH_OAUTH2_GOOGLE_CLIENT_ID:missing_value_sentinel}
spring.security.oauth2.client.registration.google.client-secret=${APPSMITH_OAUTH2_GOOGLE_CLIENT_SECRET:}
spring.security.oauth2.client.provider.google.userNameAttribute=email
spring.security.oauth2.client.registration.github.client-id=${APPSMITH_OAUTH2_GITHUB_CLIENT_ID:missing_value_sentinel}
spring.security.oauth2.client.registration.github.client-secret=${APPSMITH_OAUTH2_GITHUB_CLIENT_SECRET:}
spring.security.oauth2.client.provider.github.userNameAttribute=login
# Accounts from specific domains are allowed to login
# DEPRECATED, in favor of signup.allowed-domains
oauth2.allowed-domains=${APPSMITH_OAUTH2_ALLOWED_DOMAINS:}
# Segment
segment.writeKey=${APPSMITH_SEGMENT_KEY:}
# Is this instance hosted on Appsmith cloud?
is.cloud-hosting = ${APPSMITH_CLOUD_HOSTING:false}
disable.telemetry = ${APPSMITH_DISABLE_TELEMETRY:true}
segment.ce.key = ${APPSMITH_SEGMENT_CE_KEY:}
# Sentry
fix: Enable Sentry logging for Appsmith cloud server (#24893) ## Description This PR enables the Sentry error logging for Appsmith cloud server. Related slack thread: https://theappsmith.slack.com/archives/CPQNLFHTN/p1685513675580309?thread_ts=1684307194.980669&cid=CPQNLFHTN #### PR fixes following issue(s) Fixes https://github.com/appsmithorg/cloud-services/issues/920 #### Type of change - Bug fix (non-breaking change which fixes an issue) #### How Has This Been Tested? - [x] Manual <img width="1721" alt="Screenshot 2023-06-28 at 11 19 27 AM" src="https://github.com/appsmithorg/appsmith/assets/41686026/66d1d677-4bf8-4e30-9120-6cca6c834d42"> ## Checklist: #### Dev activity - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [ ] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] PR is being merged under a feature flag #### QA activity: - [ ] [Speedbreak features](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#speedbreakers-) have been covered - [ ] Test plan covers all impacted features and [areas of interest](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#areas-of-interest-) - [ ] Test plan has been peer reviewed by project stakeholders and other QA members - [ ] Manually tested functionality on DP - [ ] We had an implementation alignment call with stakeholders post QA Round 2 - [ ] Cypress test cases have been added and approved by SDET/manual QA - [ ] Added `Test Plan Approved` label after Cypress tests were reviewed - [ ] Added `Test Plan Approved` label after JUnit tests were reviewed
2023-06-29 09:29:47 +00:00
sentry.dsn=${APPSMITH_SERVER_SENTRY_DSN:}
sentry.send-default-pii=true
feat: Server side observability (#19828) ## Description TL;DR: This PR introduces metrics logging using native Spring support for Micrometer. It includes a docker-compose to set up all the required parts of this observability stack in the local environment as well. In order to make use of this stack, please navigate to `utils/observability` and execute the following command: ``` docker-compose up -d ``` The set up comes bundled with a default Grafana dashboard that can be accessed at localhost:3001. Please feel free to switch the mapping ports around in the docker-compose file. This dashboard currently shows all http requests (sampled at 0.1 by default), and the server side implementation has introduced some minimal tracing for the `/api/v1/action/execute` endpoint. This means that you can use the trace id from http server requests for this endpoint to delve deeper into the spans exposed in this flow. In case you would like to send trace information to another service, please make use of the `APPSMITH_TRACING_ENDPOINT` variable. To override the default sampling rate in your local (to say, 1), you can set that as the value for the variable `APPSMITH_SAMPLING_PROBABILITY`. Fixes #19153 ## Type of change - Chore (housekeeping or task changes that don't impact user perception) ## How Has This Been Tested? - Manual ### Test Plan No testing required, only needs regression after merge. ## Checklist: ### Dev activity - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [ ] PR is being merged under a feature flag --------- Co-authored-by: Sumesh Pradhan <sumesh@appsmith.com>
2023-02-07 08:56:18 +00:00
sentry.debug=false
fix: Enable Sentry logging for Appsmith cloud server (#24893) ## Description This PR enables the Sentry error logging for Appsmith cloud server. Related slack thread: https://theappsmith.slack.com/archives/CPQNLFHTN/p1685513675580309?thread_ts=1684307194.980669&cid=CPQNLFHTN #### PR fixes following issue(s) Fixes https://github.com/appsmithorg/cloud-services/issues/920 #### Type of change - Bug fix (non-breaking change which fixes an issue) #### How Has This Been Tested? - [x] Manual <img width="1721" alt="Screenshot 2023-06-28 at 11 19 27 AM" src="https://github.com/appsmithorg/appsmith/assets/41686026/66d1d677-4bf8-4e30-9120-6cca6c834d42"> ## Checklist: #### Dev activity - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [ ] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] PR is being merged under a feature flag #### QA activity: - [ ] [Speedbreak features](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#speedbreakers-) have been covered - [ ] Test plan covers all impacted features and [areas of interest](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#areas-of-interest-) - [ ] Test plan has been peer reviewed by project stakeholders and other QA members - [ ] Manually tested functionality on DP - [ ] We had an implementation alignment call with stakeholders post QA Round 2 - [ ] Cypress test cases have been added and approved by SDET/manual QA - [ ] Added `Test Plan Approved` label after Cypress tests were reviewed - [ ] Added `Test Plan Approved` label after JUnit tests were reviewed
2023-06-29 09:29:47 +00:00
sentry.environment=${APPSMITH_SERVER_SENTRY_ENVIRONMENT:}
# Redis Properties
spring.data.redis.url=${APPSMITH_REDIS_URL}
# Mail Properties
# Email defaults to false, because, when true and the other SMTP properties are not set, Spring will try to use a
# default localhost:25 SMTP server and throw an error. If false, this error won't happen because there's no attempt
# to send an email.
mail.enabled=${APPSMITH_MAIL_ENABLED:false}
mail.from=${APPSMITH_MAIL_FROM:}
mail.support=${APPSMITH_MAIL_SUPPORT:support@appsmith.com}
reply.to=${APPSMITH_REPLY_TO:appsmith@localhost}
spring.mail.host=${APPSMITH_MAIL_HOST:}
spring.mail.port=${APPSMITH_MAIL_PORT:}
spring.mail.username=${APPSMITH_MAIL_USERNAME:}
spring.mail.password=${APPSMITH_MAIL_PASSWORD:}
spring.mail.properties.mail.smtp.auth=${APPSMITH_MAIL_SMTP_AUTH:}
spring.mail.properties.mail.smtp.starttls.enable=${APPSMITH_MAIL_SMTP_TLS_ENABLED:}
admin.emails = ${APPSMITH_ADMIN_EMAILS:}
# Configuring individual emails
emails.welcome.enabled = ${APPSMITH_EMAILS_WELCOME_ENABLED:true}
Include version information when building Docker images for server and client (#2200) * Include version information in backend builds * Enable manual trigger of server workflow * Add a dummy input field for manual trigger * Fix secret checking in github actions * Disable cron scheduling of sync job * Build docker image on pushing a version tag * Fix duplicated id and invalid id in release workflow * Don't try to login to Docker * Avoid download progress outputs from Maven * Add version information for building client * Calculate version number only once * Enable push to DockerHub after building images * Use Docker username from GitHub secrets * Fix Docker username in tags when building image * Use different secret for org name * Minor refactoring in server workflow * Update client build workflow to use version * Enable manual triggering of client workflow * Set snapshot version for server builds * Push to docker for all branches (temp) * Undo temp change to push all branches to DockerHub * Use Docker org from secrets in client.yml * Fix missing version reference in client.yml * Remove debug command in dockerfile * Save release notes in a resource file in Docker image * Fix query serialization to get release notes * Get releases of current repo instead of hard-coded repo * Fix variable quoting for repo variables * Exclude draft and prerelease nodes from image * Fix call to any in release notes processor * Fix syntax error in release notes script * Implement API to get new release count and info * Add missing ReleaseNotes component * Have the release workflow run after a release is created * Build server after generating release notes * Change release trigger to "released" * Change release trigger to "published" * Change release trigger to released, edited and deleted * Use JS script to get release notes, take 1 * Filter drafts and prereleases in script * Fix syntax error in ES6 * Write release notes to file * Create parent directory before writing release notes * Log cwd in release notes script * Log pwd along with release-notes content * Handle case where working directory is incorrect * Remove shell based release notes generator * Don't show error when Sentry config is missing * Check for sentry auth token to enable Sentry * Carry build's exit code over to CI * Mark out build result and add a note about it * Add a small test to verify new versions computation * Remove incorrect test assertion * Remove generation of release notes file * Connect to cloud services to fetch release notes data * Fix missing runner for test class * Handle missing cloud_services base URL * Fix test failures due to missing mocks * Enable sync-ee cron job * Revert build.sh as there's no real change * Add API to update release notes viewed version for users * Fix prettier line-length errors * Create UserData model for info unrelated to auth * Fix field name calls * Ensure we have a userId before setting userData * Add tests for setting version number in UserData * Include instanceId when fetching release notes
2021-01-12 12:45:15 +00:00
# Appsmith Cloud Services
appsmith.cloud_services.base_url = ${APPSMITH_CLOUD_SERVICES_BASE_URL:https://cs.appsmith.com}
Include version information when building Docker images for server and client (#2200) * Include version information in backend builds * Enable manual trigger of server workflow * Add a dummy input field for manual trigger * Fix secret checking in github actions * Disable cron scheduling of sync job * Build docker image on pushing a version tag * Fix duplicated id and invalid id in release workflow * Don't try to login to Docker * Avoid download progress outputs from Maven * Add version information for building client * Calculate version number only once * Enable push to DockerHub after building images * Use Docker username from GitHub secrets * Fix Docker username in tags when building image * Use different secret for org name * Minor refactoring in server workflow * Update client build workflow to use version * Enable manual triggering of client workflow * Set snapshot version for server builds * Push to docker for all branches (temp) * Undo temp change to push all branches to DockerHub * Use Docker org from secrets in client.yml * Fix missing version reference in client.yml * Remove debug command in dockerfile * Save release notes in a resource file in Docker image * Fix query serialization to get release notes * Get releases of current repo instead of hard-coded repo * Fix variable quoting for repo variables * Exclude draft and prerelease nodes from image * Fix call to any in release notes processor * Fix syntax error in release notes script * Implement API to get new release count and info * Add missing ReleaseNotes component * Have the release workflow run after a release is created * Build server after generating release notes * Change release trigger to "released" * Change release trigger to "published" * Change release trigger to released, edited and deleted * Use JS script to get release notes, take 1 * Filter drafts and prereleases in script * Fix syntax error in ES6 * Write release notes to file * Create parent directory before writing release notes * Log cwd in release notes script * Log pwd along with release-notes content * Handle case where working directory is incorrect * Remove shell based release notes generator * Don't show error when Sentry config is missing * Check for sentry auth token to enable Sentry * Carry build's exit code over to CI * Mark out build result and add a note about it * Add a small test to verify new versions computation * Remove incorrect test assertion * Remove generation of release notes file * Connect to cloud services to fetch release notes data * Fix missing runner for test class * Handle missing cloud_services base URL * Fix test failures due to missing mocks * Enable sync-ee cron job * Revert build.sh as there's no real change * Add API to update release notes viewed version for users * Fix prettier line-length errors * Create UserData model for info unrelated to auth * Fix field name calls * Ensure we have a userId before setting userData * Add tests for setting version number in UserData * Include instanceId when fetching release notes
2021-01-12 12:45:15 +00:00
appsmith.cloud_services.username = ${APPSMITH_CLOUD_SERVICES_USERNAME:}
appsmith.cloud_services.password = ${APPSMITH_CLOUD_SERVICES_PASSWORD:}
github_repo = ${APPSMITH_GITHUB_REPO:}
# MANDATORY!! No default properties are being provided for encryption password and salt for security.
# The server would not come up without these values provided through the environment variables.
encrypt.password=${APPSMITH_ENCRYPTION_PASSWORD:}
encrypt.salt=${APPSMITH_ENCRYPTION_SALT:}
# The following configurations are to help support prometheus scraping for monitoring
feat: Server side observability (#19828) ## Description TL;DR: This PR introduces metrics logging using native Spring support for Micrometer. It includes a docker-compose to set up all the required parts of this observability stack in the local environment as well. In order to make use of this stack, please navigate to `utils/observability` and execute the following command: ``` docker-compose up -d ``` The set up comes bundled with a default Grafana dashboard that can be accessed at localhost:3001. Please feel free to switch the mapping ports around in the docker-compose file. This dashboard currently shows all http requests (sampled at 0.1 by default), and the server side implementation has introduced some minimal tracing for the `/api/v1/action/execute` endpoint. This means that you can use the trace id from http server requests for this endpoint to delve deeper into the spans exposed in this flow. In case you would like to send trace information to another service, please make use of the `APPSMITH_TRACING_ENDPOINT` variable. To override the default sampling rate in your local (to say, 1), you can set that as the value for the variable `APPSMITH_SAMPLING_PROBABILITY`. Fixes #19153 ## Type of change - Chore (housekeeping or task changes that don't impact user perception) ## How Has This Been Tested? - Manual ### Test Plan No testing required, only needs regression after merge. ## Checklist: ### Dev activity - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [ ] PR is being merged under a feature flag --------- Co-authored-by: Sumesh Pradhan <sumesh@appsmith.com>
2023-02-07 08:56:18 +00:00
management.endpoints.web.exposure.include=prometheus,metrics
management.tracing.enabled=${APPSMITH_TRACING_ENABLED:false}
management.zipkin.tracing.endpoint=${APPSMITH_TRACING_ENDPOINT:http://localhost:9411/api/v2/spans}
feat: Server side observability (#19828) ## Description TL;DR: This PR introduces metrics logging using native Spring support for Micrometer. It includes a docker-compose to set up all the required parts of this observability stack in the local environment as well. In order to make use of this stack, please navigate to `utils/observability` and execute the following command: ``` docker-compose up -d ``` The set up comes bundled with a default Grafana dashboard that can be accessed at localhost:3001. Please feel free to switch the mapping ports around in the docker-compose file. This dashboard currently shows all http requests (sampled at 0.1 by default), and the server side implementation has introduced some minimal tracing for the `/api/v1/action/execute` endpoint. This means that you can use the trace id from http server requests for this endpoint to delve deeper into the spans exposed in this flow. In case you would like to send trace information to another service, please make use of the `APPSMITH_TRACING_ENDPOINT` variable. To override the default sampling rate in your local (to say, 1), you can set that as the value for the variable `APPSMITH_SAMPLING_PROBABILITY`. Fixes #19153 ## Type of change - Chore (housekeeping or task changes that don't impact user perception) ## How Has This Been Tested? - Manual ### Test Plan No testing required, only needs regression after merge. ## Checklist: ### Dev activity - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [ ] PR is being merged under a feature flag --------- Co-authored-by: Sumesh Pradhan <sumesh@appsmith.com>
2023-02-07 08:56:18 +00:00
management.tracing.sampling.probability=${APPSMITH_SAMPLING_PROBABILITY:0.1}
management.prometheus.metrics.export.descriptions=true
feat: Server side observability (#19828) ## Description TL;DR: This PR introduces metrics logging using native Spring support for Micrometer. It includes a docker-compose to set up all the required parts of this observability stack in the local environment as well. In order to make use of this stack, please navigate to `utils/observability` and execute the following command: ``` docker-compose up -d ``` The set up comes bundled with a default Grafana dashboard that can be accessed at localhost:3001. Please feel free to switch the mapping ports around in the docker-compose file. This dashboard currently shows all http requests (sampled at 0.1 by default), and the server side implementation has introduced some minimal tracing for the `/api/v1/action/execute` endpoint. This means that you can use the trace id from http server requests for this endpoint to delve deeper into the spans exposed in this flow. In case you would like to send trace information to another service, please make use of the `APPSMITH_TRACING_ENDPOINT` variable. To override the default sampling rate in your local (to say, 1), you can set that as the value for the variable `APPSMITH_SAMPLING_PROBABILITY`. Fixes #19153 ## Type of change - Chore (housekeeping or task changes that don't impact user perception) ## How Has This Been Tested? - Manual ### Test Plan No testing required, only needs regression after merge. ## Checklist: ### Dev activity - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [ ] PR is being merged under a feature flag --------- Co-authored-by: Sumesh Pradhan <sumesh@appsmith.com>
2023-02-07 08:56:18 +00:00
management.metrics.distribution.percentiles-histogram.http.server.requests=true
# Support disabling signup with an environment variable
signup.disabled = ${APPSMITH_SIGNUP_DISABLED:false}
signup.allowed-domains=${APPSMITH_SIGNUP_ALLOWED_DOMAINS:}
# Google recaptcha config
google.recaptcha.key.site = ${APPSMITH_RECAPTCHA_SITE_KEY:}
google.recaptcha.key.secret= ${APPSMITH_RECAPTCHA_SECRET_KEY:}
# Plugin Interface level settings
appsmith.plugin.response.size.max=${APPSMITH_PLUGIN_MAX_RESPONSE_SIZE_MB:5}
# Location env file with environment variables, that can be configured from the UI.
appsmith.admin.envfile=${APPSMITH_ENVFILE_PATH:/appsmith-stacks/configuration/docker.env}
# RTS port
appsmith.rts.port=${APPSMITH_RTS_PORT:8091}