2016-02-12 23:52:43 +08:00
|
|
|
# Be sure to restart your server when you modify this file.
|
|
|
|
|
2017-06-23 21:19:08 +08:00
|
|
|
# Your secret key is used for verifying the integrity of signed cookies.
|
|
|
|
# If you change this key, all old signed cookies will become invalid!
|
|
|
|
|
|
|
|
# Make sure the secret is at least 30 characters and all random,
|
|
|
|
# no regular words or you'll be exposed to dictionary attacks.
|
|
|
|
# You can use `rails secret` to generate a secure secret key.
|
|
|
|
|
|
|
|
# Make sure the secrets in this file are kept private
|
|
|
|
# if you're sharing your code publicly.
|
|
|
|
|
|
|
|
# Shared secrets are available across all environments.
|
|
|
|
|
|
|
|
# shared:
|
|
|
|
# api_key: a1B2c3D4e5F6
|
|
|
|
|
|
|
|
# Environmental secrets are only available for that specific environment.
|
|
|
|
# Be sure to restart your server when you modify this file.
|
|
|
|
|
2016-02-12 23:52:43 +08:00
|
|
|
common: &common
|
|
|
|
|
|
|
|
# ======================================================================
|
|
|
|
# Server address is used for mailer (in "confirm new email/..." emails,
|
2018-05-21 21:11:12 +08:00
|
|
|
# SciNote needs to know onto which URL to redirect the user for
|
2016-02-12 23:52:43 +08:00
|
|
|
# confirmation page)
|
|
|
|
# ======================================================================
|
|
|
|
|
|
|
|
mail_server_url: <%= ENV["MAIL_SERVER_URL"] || "localhost" %>
|
|
|
|
|
|
|
|
# ======================================================================
|
|
|
|
# Mailer configuration to define from which SMTP server to send
|
|
|
|
# e-mails.
|
|
|
|
# ======================================================================
|
|
|
|
|
|
|
|
mailer_from: <%= ENV["MAIL_FROM"] %>
|
|
|
|
mailer_reply_to: <%= ENV["MAIL_REPLYTO"] %>
|
|
|
|
mailer_address: <%= ENV["SMTP_ADDRESS"] %>
|
|
|
|
mailer_port: <%= ENV["SMTP_PORT"] || "587" %>
|
2018-02-15 00:02:28 +08:00
|
|
|
mailer_authentication: <%= ENV["SMTP_AUTH_METHOD"] || "plain" %>
|
2016-02-12 23:52:43 +08:00
|
|
|
mailer_domain: <%= ENV["SMTP_DOMAIN"] %>
|
|
|
|
mailer_user_name: <%= ENV["SMTP_USERNAME"] %>
|
|
|
|
mailer_password: <%= ENV["SMTP_PASSWORD"] %>
|
2020-01-24 20:33:08 +08:00
|
|
|
mailer_openssl_verify_mode: <%= ENV["SMTP_OPENSSL_VERIFY_MODE"] || "peer" %>
|
2020-02-20 18:10:20 +08:00
|
|
|
mailer_openssl_ca_path: <%= ENV["SMTP_OPENSSL_CA_PATH"] || "/etc/ssl/certs" %>
|
|
|
|
mailer_openssl_ca_file: <%= ENV["SMTP_OPENSSL_CA_FILE"] || "/etc/ssl/certs/ca-certificates.crt" %>
|
2016-02-12 23:52:43 +08:00
|
|
|
|
|
|
|
# ======================================================================
|
|
|
|
# Your secret key is used for verifying the integrity of signed cookies.
|
|
|
|
# If you change this key, all old signed cookies will become invalid!
|
|
|
|
|
|
|
|
# Make sure the secret is at least 30 characters and all random,
|
|
|
|
# no regular words or you'll be exposed to dictionary attacks.
|
|
|
|
# You can use `rake secret` to generate a secure secret key.
|
|
|
|
# ======================================================================
|
|
|
|
|
2017-07-04 20:42:53 +08:00
|
|
|
# secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
|
2016-02-12 23:52:43 +08:00
|
|
|
|
|
|
|
# ======================================================================
|
|
|
|
# Write any potential environment-specific secrets here.
|
|
|
|
# ======================================================================
|
|
|
|
|
|
|
|
development:
|
2017-11-23 16:55:57 +08:00
|
|
|
secret_key_base: 22f2adf8f5cb73351da28f2292daa840cc2a414ae00ae605b175a8d5c73932f7e5b8ff8ef8f1554a7f1064f9869b15347f7709f0daa6ccb24c50f3cace304f64
|
2019-02-04 21:33:22 +08:00
|
|
|
system_notifications_uri: <%= ENV["SYSTEM_NOTIFICATIONS_URI"] %>
|
|
|
|
system_notifications_channel: <%= ENV["SYSTEM_NOTIFICATIONS_CHANNEL"] %>
|
2019-04-04 20:35:16 +08:00
|
|
|
export_all_limit_24h: <%= ENV['EXPORT_ALL_LIMIT_24_HOURS'] %>
|
2016-02-12 23:52:43 +08:00
|
|
|
<<: *common
|
|
|
|
|
|
|
|
test:
|
2017-11-23 16:55:57 +08:00
|
|
|
secret_key_base: f3719934e04fa8871cf5d33d5c60f05e1b8995e0315265aef9f8b878da49bd2d386eb25ce35545b469a94ccf22f91e0052b93a15194b4f57b0c8d6ce8b150e1e
|
2019-02-04 21:33:22 +08:00
|
|
|
system_notifications_uri: 'system-notifications-service.test'
|
|
|
|
system_notifications_channel: 'test-channel'
|
2019-04-04 20:35:16 +08:00
|
|
|
export_all_limit_24h: '3'
|
|
|
|
|
2016-02-12 23:52:43 +08:00
|
|
|
<<: *common
|
|
|
|
|
|
|
|
production:
|
2017-06-23 21:19:08 +08:00
|
|
|
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
|
2019-02-04 21:33:22 +08:00
|
|
|
system_notifications_uri: <%= ENV["SYSTEM_NOTIFICATIONS_URI"] %>
|
|
|
|
system_notifications_channel: <%= ENV["SYSTEM_NOTIFICATIONS_CHANNEL"] %>
|
2019-04-04 20:35:16 +08:00
|
|
|
export_all_limit_24h: <%= ENV['EXPORT_ALL_LIMIT_24_HOURS'] %>
|
|
|
|
|
2017-06-23 21:19:08 +08:00
|
|
|
<<: *common
|