mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-06 13:14:29 +08:00
Update application.yml
parent
f420ecf694
commit
736d779345
1 changed files with 13 additions and 29 deletions
|
@ -86,26 +86,15 @@ Following commands are available:
|
|||
|
||||
## Environmental variables
|
||||
|
||||
SciNote reads configuration parameters from system environment parameters. On production servers, this can be simply be system environmental variables, while for development, a file `config/application.yml` can be created to specify those variables.
|
||||
SciNote reads configuration parameters from system environment parameters. On production servers, this can simply be system environmental variables, while for development, a file `config/application.yml` can be created to specify those variables.
|
||||
|
||||
Below is an example `application.yml` file, which should get the server running; for full reference, check the below table of all available variables.
|
||||
Below is an example `application.yml` file, which should get the server running; for full reference, check the dedicated page (below) to see all available variables.
|
||||
|
||||
```yml
|
||||
# Secrets
|
||||
SECRET_KEY_BASE: "<<secret_key_base>>"
|
||||
PAPERCLIP_HASH_SECRET: "<<paperclip_hash_secret>>"
|
||||
|
||||
# Mailer settings
|
||||
MAIL_FROM: "Example SciNote Assistant <assistant@yourdomain.com>"
|
||||
MAIL_REPLYTO: "Example SciNote Assistant <assistant@yourdomain.com>"
|
||||
SMTP_ADDRESS: "your.yoursmtp.com"
|
||||
SMTP_PORT: "25"
|
||||
SMTP_DOMAIN: "yoursmtp.com"
|
||||
SMTP_USERNAME: "user@yoursmtp.com"
|
||||
SMTP_PASSWORD: "<<smtp_password>>"
|
||||
SMTP_AUTH_METHOD: "plain"
|
||||
MAIL_SERVER_URL: "scinote.yourdomain.com"
|
||||
|
||||
# File storage
|
||||
|
||||
# For local file storage
|
||||
|
@ -119,26 +108,21 @@ PAPERCLIP_STORAGE: "filesystem"
|
|||
#S3_BUCKET: ""
|
||||
#S3_HOST_NAME: ""
|
||||
|
||||
# This is needed for 'better errors' gem in development mode
|
||||
TRUSTED_IP: "172.17.0.1"
|
||||
# Mailer settings
|
||||
MAIL_FROM: "Example SciNote Assistant <assistant@yourdomain.com>"
|
||||
MAIL_REPLYTO: "Example SciNote Assistant <assistant@yourdomain.com>"
|
||||
SMTP_ADDRESS: "your.yoursmtp.com"
|
||||
SMTP_PORT: "25"
|
||||
SMTP_DOMAIN: "yoursmtp.com"
|
||||
SMTP_USERNAME: "user@yoursmtp.com"
|
||||
SMTP_PASSWORD: "<<smtp_password>>"
|
||||
SMTP_AUTH_METHOD: "plain"
|
||||
MAIL_SERVER_URL: "scinote.yourdomain.com"
|
||||
|
||||
# Various settings
|
||||
# Sign-up process
|
||||
NEW_TEAM_ON_SIGNUP: "true"
|
||||
|
||||
ENABLE_EMAIL_CONFIRMATIONS: "false"
|
||||
|
||||
ENABLE_RECAPTCHA: "true"
|
||||
ENABLE_USER_REGISTRATION: "true"
|
||||
RECAPTCHA_SITE_KEY: "<<recaptcha_site_key>>"
|
||||
RECAPTCHA_SECRET_KEY: "<<recaptcha_secret_key>>"
|
||||
|
||||
DELAYED_WORKER_DESTROY_FAILED_JOBS: "false"
|
||||
DELAYED_WORKER_SLEEP_DELAY: "60"
|
||||
DELAYED_WORKER_MAX_ATTEMPTS: "6"
|
||||
DELAYED_WORKER_MAX_RUN_TIME: "30"
|
||||
DELAYED_WORKER_READ_AHEAD: "10"
|
||||
DELAYED_WORKER_DEFAULT_QUEUE_NAME: "default"
|
||||
|
||||
```
|
||||
|
||||
For complete list of variables, see [Environmental variables](../Environmental-variables) page.
|
||||
|
|
Loading…
Add table
Reference in a new issue