[galene] Clean nginx configuration
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>certbot_on_virtu
parent
aa011c6272
commit
76a4bbf0fc
|
@ -0,0 +1,28 @@
|
|||
---
|
||||
service_nginx:
|
||||
service_name: galene
|
||||
servers:
|
||||
- ssl: crans.org
|
||||
default: true
|
||||
server_name:
|
||||
- "galene.crans.org"
|
||||
locations:
|
||||
- filter: "/"
|
||||
params:
|
||||
- "include /etc/nginx/snippets/options-proxypass.conf"
|
||||
- "proxy_pass http://localhost:8443"
|
||||
|
||||
- ssl: crans.org
|
||||
server_name:
|
||||
- "neree.crans.org"
|
||||
root: "/var/www/galene-stream-frontend/static"
|
||||
locations:
|
||||
- filter: "~ ^/(ws|public-groups.json)"
|
||||
params:
|
||||
- "include /etc/nginx/snippets/options-proxypass.conf"
|
||||
- "proxy_pass http://localhost:8443"
|
||||
|
||||
- filter: "~ ^\\/(?!.*\\.\\.)[^/]+$"
|
||||
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"
|
Loading…
Reference in New Issue