summaryrefslogtreecommitdiffstats
path: root/pad-proxy/tasks
diff options
context:
space:
mode:
authorSacha Chua <sacha@sachachua.com>2022-10-15 22:16:28 -0400
committerSacha Chua <sacha@sachachua.com>2022-10-15 22:16:28 -0400
commit8024842def28dd151759ee46cd160c7794463aef (patch)
tree307795c10fa14b1168e1a8936f816e33e1b985f9 /pad-proxy/tasks
parent830f627d38a1476af3a96c554157ee95b03a2ba0 (diff)
downloademacsconf-ansible-8024842def28dd151759ee46cd160c7794463aef.tar.xz
emacsconf-ansible-8024842def28dd151759ee46cd160c7794463aef.zip
Improve pad proxy with templated config, support SSL on pad.emacsconf.org
Diffstat (limited to '')
-rw-r--r--pad-proxy/tasks/main.yml16
1 files changed, 5 insertions, 11 deletions
diff --git a/pad-proxy/tasks/main.yml b/pad-proxy/tasks/main.yml
index d47573a..8de72df 100644
--- a/pad-proxy/tasks/main.yml
+++ b/pad-proxy/tasks/main.yml
@@ -9,19 +9,13 @@
- name: Add proxy configuration
template:
src: etherpad.nginx.conf
- dest: /etc/nginx/sites-available/etherpad.conf
- when: not use_wikimedia
- - name: Add rewrite configuration
- template:
- src: wikimedia.etherpad.nginx.conf
- dest: /etc/nginx/sites-available/etherpad.conf
- when: use_wikimedia
+ dest: /etc/nginx/sites-available/pad.emacsconf.org
- name: Enable site
file:
- src: /etc/nginx/sites-available/etherpad.conf
- dest: /etc/nginx/sites-enabled/etherpad.conf
+ src: /etc/nginx/sites-available/pad.emacsconf.org
+ dest: /etc/nginx/sites-enabled/pad.emacsconf.org
state: link
- - name: Restart nginx
+ - name: Reload nginx
service:
name: nginx
- state: restarted
+ state: reloaded