summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSacha Chua <sacha@sachachua.com>2026-05-10 15:00:00 -0400
committerSacha Chua <sacha@sachachua.com>2026-05-10 15:00:00 -0400
commitc212767a1fc866d526ab46d8288ae2825709fdc4 (patch)
treedb5dd5ea55fded89a8d928cfbd00743a28a24029
parenta3e565b3b9074afd912e38e0ee85ecd8bf0ad1cf (diff)
downloademacsconf-ansible-c212767a1fc866d526ab46d8288ae2825709fdc4.tar.xz
emacsconf-ansible-c212767a1fc866d526ab46d8288ae2825709fdc4.zip
Be more selective about emacsconf pad redirect
-rw-r--r--roles/pad-proxy/templates/etherpad.nginx.conf3
1 files changed, 3 insertions, 0 deletions
diff --git a/roles/pad-proxy/templates/etherpad.nginx.conf b/roles/pad-proxy/templates/etherpad.nginx.conf
index b657b98..2c285af 100644
--- a/roles/pad-proxy/templates/etherpad.nginx.conf
+++ b/roles/pad-proxy/templates/etherpad.nginx.conf
@@ -24,6 +24,9 @@ server {
proxy_buffering off;
proxy_pass http://etherpad_upstream;
}
+ location /emacsconf/?$ {
+ return 301 /p/{{ emacsconf_year }};
+ }
location /p/ {
rewrite ^/p/(.*) /$1 redirect;
}