From 077112b718eb29aecf331b1e703e7e90d8538e6c Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Wed, 13 Sep 2023 08:58:06 -0400 Subject: add some more scripts, change 2022 to emacsconf_year --- roles/pad-proxy/templates/etherpad.nginx.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'roles/pad-proxy/templates') diff --git a/roles/pad-proxy/templates/etherpad.nginx.conf b/roles/pad-proxy/templates/etherpad.nginx.conf index 3131178..144185f 100644 --- a/roles/pad-proxy/templates/etherpad.nginx.conf +++ b/roles/pad-proxy/templates/etherpad.nginx.conf @@ -38,7 +38,7 @@ server { {% if use_wikimedia %} location ~ ^/$ { - return 302 https://etherpad.wikimedia.org/p/emacsconf-2022; + return 302 https://etherpad.wikimedia.org/p/emacsconf-{{ emacsconf_year }}; } location / { rewrite /(.*) https://etherpad.wikimedia.org/p/emacsconf-$1 redirect; @@ -49,7 +49,7 @@ server { proxy_pass http://etherpad_upstream; } location / { - rewrite ^/?$ https://pad.emacsconf.org/2022 redirect; + rewrite ^/?$ https://pad.emacsconf.org/{{ emacsconf_year }} redirect; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; -- cgit v1.2.3