2013-12-20 00:17:21 -05:00
|
|
|
#
|
|
|
|
# DO NOT EDIT THIS FILE
|
|
|
|
# If you need to make changes create a file called discourse.conf in this directory with your changes
|
2014-06-03 18:38:10 -04:00
|
|
|
# On import this file will be imported using ERB
|
2013-12-20 02:01:41 -05:00
|
|
|
#
|
2013-12-20 00:17:21 -05:00
|
|
|
|
|
|
|
# Discourse supports multiple mechanisms for production config.
|
|
|
|
#
|
|
|
|
# 1. You can do nothing and get these defaults (not recommended, you should at least set hostname)
|
|
|
|
# 2. You can copy this file to config/discourse.conf and amend with your settings
|
|
|
|
# 3. You can pass in config from your environment, all the settings below are available.
|
2013-12-20 02:01:41 -05:00
|
|
|
# Append DISCOURSE_ and upper case the setting in ENV. For example:
|
|
|
|
# to pass in db_timeout of 200 you would use DISCOURSE_DB_TIMEOUT=200
|
2013-12-20 00:17:21 -05:00
|
|
|
|
|
|
|
# All settings apply to production only
|
|
|
|
|
2014-05-21 19:00:24 -04:00
|
|
|
# connection pool size, sidekiq is set to 5, allowing an extra 3 for bg threads
|
|
|
|
db_pool = 8
|
2013-12-20 00:17:21 -05:00
|
|
|
|
|
|
|
# database timeout in milliseconds
|
|
|
|
db_timeout = 5000
|
|
|
|
|
|
|
|
# socket file used to access db
|
2013-12-20 00:23:01 -05:00
|
|
|
db_socket =
|
2013-12-20 00:17:21 -05:00
|
|
|
|
|
|
|
# host address for db server
|
2014-01-05 20:25:29 -05:00
|
|
|
# This is set to blank so it tries to use sockets first
|
|
|
|
db_host =
|
2013-12-20 00:17:21 -05:00
|
|
|
|
2014-01-05 20:25:29 -05:00
|
|
|
# port running db server, no need to set it
|
|
|
|
db_port =
|
2013-12-20 00:17:21 -05:00
|
|
|
|
|
|
|
# database name running discourse
|
|
|
|
db_name = discourse
|
|
|
|
|
|
|
|
# username accessing database
|
|
|
|
db_username = discourse
|
|
|
|
|
|
|
|
# password used to access the db
|
|
|
|
db_password =
|
|
|
|
|
2015-10-18 23:02:22 -04:00
|
|
|
# Disallow prepared statements
|
|
|
|
# see: https://github.com/rails/rails/issues/21992
|
|
|
|
db_prepared_statements = false
|
2015-02-17 19:16:53 -05:00
|
|
|
|
2016-01-25 01:27:59 -05:00
|
|
|
# host address for db replica server
|
|
|
|
db_replica_host =
|
|
|
|
|
|
|
|
# port running replica db server, defaults to 5432 if not set
|
|
|
|
db_replica_port =
|
|
|
|
|
2013-12-20 00:17:21 -05:00
|
|
|
# hostname running the forum
|
|
|
|
hostname = "www.example.com"
|
|
|
|
|
2015-07-23 01:33:38 -04:00
|
|
|
# backup hostname mainly for cdn use
|
|
|
|
backup_hostname =
|
2015-07-23 01:22:54 -04:00
|
|
|
|
2013-12-20 00:17:21 -05:00
|
|
|
# address of smtp server used to send emails
|
|
|
|
smtp_address =
|
|
|
|
|
|
|
|
# port of smtp server used to send emails
|
|
|
|
smtp_port = 25
|
|
|
|
|
|
|
|
# domain passed to smtp server
|
|
|
|
smtp_domain =
|
|
|
|
|
|
|
|
# username for smtp server
|
|
|
|
smtp_user_name =
|
|
|
|
|
|
|
|
# password for smtp server
|
|
|
|
smtp_password =
|
|
|
|
|
2014-01-06 07:49:42 -05:00
|
|
|
# smtp authentication mechanism
|
|
|
|
smtp_authentication = plain
|
|
|
|
|
2013-12-20 00:17:21 -05:00
|
|
|
# enable TLS encryption for smtp connections
|
|
|
|
smtp_enable_start_tls = true
|
|
|
|
|
2014-05-07 17:59:05 -04:00
|
|
|
# mode for verifying smtp server certificates
|
|
|
|
# to disable, set to 'none'
|
|
|
|
smtp_openssl_verify_mode =
|
|
|
|
|
2014-07-16 18:34:30 -04:00
|
|
|
# load MiniProfiler in production, to be used by developers
|
|
|
|
load_mini_profiler = true
|
2013-12-20 00:17:21 -05:00
|
|
|
|
|
|
|
# recommended, cdn used to access assets
|
|
|
|
cdn_url =
|
|
|
|
|
2014-02-10 02:11:52 -05:00
|
|
|
# comma delimited list of emails that have developer level access
|
2013-12-20 00:17:21 -05:00
|
|
|
developer_emails =
|
|
|
|
|
|
|
|
# redis server address
|
|
|
|
redis_host = localhost
|
|
|
|
|
|
|
|
# redis server port
|
|
|
|
redis_port = 6379
|
|
|
|
|
2016-03-02 09:01:48 -05:00
|
|
|
# redis slave server address
|
|
|
|
redis_slave_host =
|
|
|
|
|
|
|
|
# redis slave server port
|
2016-03-11 02:07:07 -05:00
|
|
|
redis_slave_port = 6379
|
2016-03-02 09:01:48 -05:00
|
|
|
|
2013-12-30 16:39:43 -05:00
|
|
|
# redis database
|
|
|
|
redis_db = 0
|
|
|
|
|
2013-12-20 00:17:21 -05:00
|
|
|
# redis password
|
|
|
|
redis_password =
|
2014-02-10 02:11:52 -05:00
|
|
|
|
2015-06-25 02:51:48 -04:00
|
|
|
# redis sentinels eg
|
|
|
|
# redis_sentinels = 10.0.0.1:26381,10.0.0.2:26381
|
|
|
|
redis_sentinels =
|
|
|
|
|
2014-02-10 02:11:52 -05:00
|
|
|
# enable Cross-origin Resource Sharing (CORS) directly at the application level
|
|
|
|
enable_cors = false
|
2011-10-15 14:00:00 -04:00
|
|
|
cors_origin = ''
|
2014-02-16 18:43:57 -05:00
|
|
|
|
|
|
|
# enable if you really need to serve assets in prd
|
|
|
|
serve_static_assets = false
|
2014-05-13 20:21:11 -04:00
|
|
|
|
|
|
|
# number of sidekiq workers (launched via unicorn master)
|
|
|
|
sidekiq_workers = 5
|
2014-08-08 02:31:31 -04:00
|
|
|
|
|
|
|
# adjust stylesheets to rtl (requires "rtlit" gem)
|
2014-08-22 20:02:14 -04:00
|
|
|
rtl_css = false
|
|
|
|
|
|
|
|
# notify admin when a new version of discourse is released
|
|
|
|
# this is global so it is easier to set in multisites
|
|
|
|
# TODO allow for global overrides
|
|
|
|
new_version_emails = true
|
2015-02-16 17:58:23 -05:00
|
|
|
|
|
|
|
# connection reaping helps keep connection counts down, postgres
|
|
|
|
# will not work properly with huge numbers of open connections
|
|
|
|
# reap connections from pool that are older than 30 seconds
|
|
|
|
connection_reaper_age = 30
|
|
|
|
# run reap check every 30 seconds
|
|
|
|
connection_reaper_interval = 30
|
2015-10-16 20:29:16 -04:00
|
|
|
# also reap any connections older than this
|
|
|
|
connection_reaper_max_age = 600
|
2015-03-08 20:45:36 -04:00
|
|
|
|
|
|
|
# set to relative URL (for subdirectory hosting)
|
|
|
|
# IMPORTANT: path must not include a trailing /
|
|
|
|
# EG: /forum
|
|
|
|
relative_url_root =
|
2016-02-03 21:58:38 -05:00
|
|
|
|
|
|
|
# increasing this number will increase redis memory use
|
|
|
|
# this ensures backlog (ability of channels to catch up are capped)
|
|
|
|
# message bus default cap is 1000, we are winding it down to 100
|
|
|
|
message_bus_max_backlog_size = 100
|