2 - "templates/web.template.yml"
3 - "templates/web.ratelimited.template.yml"
4 - "templates/web.ssl.template.yml"
6 ## which TCP/IP ports should this container expose?
7 ## If you want Discourse to share a port with another webserver like Apache or nginx,
8 ## see https://meta.discourse.org/t/17247 for details
13 # Use 'links' key to link containers together, aka use Docker --link flag.
19 # any extra arguments for Docker?
22 # Workaround bug: https://github.com/discourse/discourse_docker/pull/505
24 # version: v2.8.13 - NOT USED HERE. UPDATE THE EXEC GIT ACTIONS BELOW WITH VERSION
30 EMBER_CLI_PROD_ASSETS: 1
31 DISCOURSE_FORCE_HTTPS: true
33 ## How many concurrent web requests are supported? Depends on memory and CPU cores.
34 ## will be set automatically by bootstrap based on detected CPUs, or you can override
35 UNICORN_WORKERS: <%= node.cpu_cores %>
37 ## TODO: The domain name this Discourse instance will respond to
38 DISCOURSE_HOSTNAME: community.openstreetmap.org
39 DISCOURSE_CDN_URL: https://community-cdn.openstreetmap.org
41 ## Uncomment if you want the container to be started with the same
42 ## hostname (-h option) as specified above (default "$hostname-$config")
43 #DOCKER_USE_HOSTNAME: true
45 ## TODO: List of comma delimited emails that will be made admin and developer
46 ## on initial signup example 'user1@example.com,user2@example.com'
47 DISCOURSE_DEVELOPER_EMAILS: 'operations@openstreetmap.org'
49 DISCOURSE_SMTP_ADDRESS: <%= node[:exim][:smarthost_via].split(":", 2)[0] %>
50 DISCOURSE_SMTP_PORT: <%= node[:exim][:smarthost_via].split(":", 2)[1] || "25" %>
51 DISCOURSE_SMTP_OPENSSL_VERIFY_MODE: none
52 DISCOURSE_SMTP_USER_NAME:
53 DISCOURSE_SMTP_PASSWORD:
54 DISCOURSE_SMTP_DOMAIN: community.openstreetmap.org
55 DISCOURSE_NOTIFICATION_EMAIL: community@noreply.openstreetmap.org
57 ## TODO: configure connectivity to the databases
58 DISCOURSE_DB_SOCKET: ''
59 #DISCOURSE_DB_USERNAME: discourse
60 DISCOURSE_DB_PASSWORD: '<%= @passwords["database"] %>'
61 DISCOURSE_DB_HOST: data
62 DISCOURSE_REDIS_HOST: data
64 ## The maxmind geolocation IP address key for IP address lookup
65 ## see https://meta.discourse.org/t/-/137387/23 for details
66 <% if @license_keys -%>
67 DISCOURSE_MAXMIND_LICENSE_KEY: '<%= @license_keys[node[:geoipupdate][:account]] %>'
72 host: /srv/community.openstreetmap.org/shared/web-only
75 host: /srv/community.openstreetmap.org/shared/web-only/log/var-log
78 host: /etc/ssl/certs/community.openstreetmap.org.pem
79 guest: /shared/ssl/ssl.crt
81 host: /etc/ssl/private/community.openstreetmap.org.key
82 guest: /shared/ssl/ssl.key
85 ## see https://meta.discourse.org/t/19157 for details
91 - git clone --depth 1 https://github.com/discourse/discourse-oauth2-basic.git
92 - git clone --depth 1 https://github.com/discourse/discourse-solved.git
93 - git clone --depth 1 https://github.com/discourse/discourse-canned-replies.git
94 - git clone --depth 1 https://github.com/discourse/discourse-reactions.git
95 - git clone --depth 1 https://github.com/discourse/discourse-prometheus.git
96 - git clone --depth 1 https://github.com/discourse/discourse-translator.git
100 - git fetch --depth=1 origin tag v2.8.13 --no-tags
101 - git checkout v2.8.13
104 filename: "/etc/nginx/conf.d/discourse.conf"
108 rewrite ^/\.well-known/acme-challenge/(.*)$ http://acme.openstreetmap.org/.well-known/acme-challenge/$1 permanent;
111 filename: "/etc/nginx/conf.d/discourse.conf"
114 add_header Strict-Transport-Security 'max-age=63072000';