Update application.yml

Luka Murn 2018-06-02 09:42:18 +02:00
parent f420ecf694
commit 736d779345

@ -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.