[Galène] Update Nginx configuration
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>certbot_on_virtu
parent
ada8e7abfa
commit
57165293db
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue