nginx: rewrite hedgedoc /s links on top level site

single-dockerfile
Trammell Hudson 3 years ago
parent 489eaa45cc
commit 3c8514695e
  1. 4
      nginx/nginx/templates/000-default.conf.template

@ -53,6 +53,10 @@ server {
location = / { location = / {
return 302 https://${DOMAIN_NAME}/Main_Page; return 302 https://${DOMAIN_NAME}/Main_Page;
} }
# rewrite /s/ links to the bare link
location ~ ^/s/(.*) {
return 302 https://${DOMAIN_NAME}/$1;
}
# normal pages go to hedgedoc static site (need to define ports in the env) # normal pages go to hedgedoc static site (need to define ports in the env)
# need to rewrite the CSP so that it allows reframing from the main site # need to rewrite the CSP so that it allows reframing from the main site
location / { location / {

Loading…
Cancel
Save