[Galène] Update Nginx configuration

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
certbot_on_virtu
Yohann D'ANELLO 2021-06-22 14:33:52 +02:00
parent ada8e7abfa
commit 57165293db
Signed by: _ynerant
GPG Key ID: 3A75C55819C8CF85
1 changed files with 7 additions and 5 deletions

View File

@ -12,17 +12,19 @@ service_nginx:
- "include /etc/nginx/snippets/options-proxypass.conf"
- "proxy_pass http://localhost:8443"
- filter: "~ ^/(\\w+)/$"
params:
- "return 302 https://$host/group/$1"
- ssl: crans.org
server_name:
- "neree.crans.org"
root: "/var/www/galene-stream-frontend/static"
locations:
- filter: "~ ^/(ws|public-groups.json)"
- filter: "/"
params:
- "include /etc/nginx/snippets/options-proxypass.conf"
- "proxy_pass http://localhost:8443"
- filter: "~ ^\\/(?!.*\\.\\.)[^/]+$"
- filter: "~ ^/(\\w+)/$"
params:
- " add_header Content-Security-Policy \"connect-src ws: wss: 'self'; img-src data: 'self'; media-src blob: 'self'; default-src 'self';\""
- "try_files $uri /galene.html =404"
- "return 302 https://$host/group/$1"