[discourse-web/flathub] Parametrize hardcoded settings




commit dbb75b8d5fbe3f1dae31c52fa70add0ec831e11c
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date:   Thu Oct 8 11:32:46 2020 +0200

    Parametrize hardcoded settings

 config/discourse.conf | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/config/discourse.conf b/config/discourse.conf
index cf73e86..09362a8 100644
--- a/config/discourse.conf
+++ b/config/discourse.conf
@@ -45,25 +45,25 @@ hostname = ${HOSTNAME}
 backup_hostname =
 
 # address of smtp server used to send emails
-smtp_address = 'cernmx.cern.ch'
+smtp_address = ${DISCOURSE_SMTP_ADDRESS}
 
 # port of smtp server used to send emails
-smtp_port = '25'
+smtp_port = ${DISCOURSE_SMTP_PORT}
 
 # domain passed to smtp server
-smtp_domain = 'cern.ch'
+smtp_domain = ${DISCOURSE_SMTP_DOMAIN}
 
 # username for smtp server
-smtp_user_name =
+smtp_user_name = ${DISCOURSE_SMTP_USER_NAME}
 
 # password for smtp server
-smtp_password =
+smtp_password = ${DISCOURSE_SMTP_PASSWORD}
 
 # smtp authentication mechanism
-smtp_authentication = 'none'
+smtp_authentication = ${DISCOURSE_SMTP_AUTHENTICATION}
 
 # enable TLS encryption for smtp connections
-smtp_enable_start_tls = false
+smtp_enable_start_tls = ${DISCOURSE_SMTP_START_TLS}
 
 # mode for verifying smtp server certificates
 # to disable, set to 'none'
@@ -132,7 +132,7 @@ message_bus_redis_skip_client_commands = false
 
 # enable Cross-origin Resource Sharing (CORS) directly at the application level
 enable_cors = true
-cors_origin = '*.cern.ch'
+cors_origin = ${DISCOURSE_CORS_ORIGIN}
 
 # enable if you really need to serve assets in prd
 serve_static_assets = false
@@ -280,4 +280,4 @@ enable_email_sync_demon = false
 
 # Set trusted ip's for prometheus.
 # Check standard nodes ips.
-prometheus_trusted_ip_allowlist_regex = '(::ffff:188\.18[4-5])|(::ffff:137\.138)'
\ No newline at end of file
+prometheus_trusted_ip_allowlist_regex = '(::ffff:188\.18[4-5])|(::ffff:137\.138)'


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]