# any extra arguments for Docker?
# docker_args:
-# Latest Version v3.3.3
+# Latest Version v3.4.0
# Discourse only support tests-passed and stable branches
params:
version: stable
cmd:
- sudo -H -E -u discourse cp /shared/feeds/update-feeds.atom public/update-feeds.atom
after_ssl:
- - replace:
- filename: "/etc/nginx/conf.d/discourse.conf"
- from: /listen 80;/
- to: |
- listen 80;
- listen [::]:80;
- rewrite ^/\.well-known/acme-challenge/(.*)$ http://acme.openstreetmap.org/.well-known/acme-challenge/$1 permanent;
-
- replace:
filename: "/etc/nginx/conf.d/discourse.conf"
from: /add_header.+/
resolver <%= @resolvers.join(" ") %>;
resolver_timeout 5s;
ssl_dhparam /shared/ssl/dhparam.pem;
+
+run:
+ - replace:
+ filename: "/etc/nginx/conf.d/discourse.conf"
+ from: /listen 80;/
+ to: |
+ listen 80;
+ listen [::]:80;
+ rewrite ^/\.well-known/acme-challenge/(.*)$ http://acme.openstreetmap.org/.well-known/acme-challenge/$1 permanent;