diff options
Diffstat (limited to 'data/drawio')
-rw-r--r-- | data/drawio/drawio.conf | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/data/drawio/drawio.conf b/data/drawio/drawio.conf new file mode 100644 index 0000000..3c374cc --- /dev/null +++ b/data/drawio/drawio.conf | |||
@@ -0,0 +1,34 @@ | |||
1 | server { | ||
2 | listen 443 ssl; | ||
3 | |||
4 | ssl_certificate /etc/letsencrypt/live/chudnick.com/fullchain.pem; | ||
5 | ssl_certificate_key /etc/letsencrypt/live/chudnick.com/privkey.pem; | ||
6 | ssl_stapling on; | ||
7 | ssl_stapling_verify on; | ||
8 | |||
9 | server_name drawio.chudnick.com; | ||
10 | |||
11 | # Security Headers | ||
12 | add_header X-Frame-Options "SAMEORIGIN"; | ||
13 | add_header X-XSS-Protection "1; mode=block"; | ||
14 | add_header X-Content-Type-Options "nosniff"; | ||
15 | |||
16 | # authelia | ||
17 | include /etc/nginx/snippets/authelia-location.conf; | ||
18 | |||
19 | location / { | ||
20 | #authelia | ||
21 | include /etc/nginx/snippets/proxy.conf; | ||
22 | include /etc/nginx/snippets/authelia-authrequest.conf; | ||
23 | |||
24 | proxy_pass http://127.0.0.1:8400; | ||
25 | } | ||
26 | } | ||
27 | |||
28 | server { | ||
29 | listen 80; | ||
30 | listen [::]:80; | ||
31 | server_name drawio.chudnick.com; | ||
32 | return 301 https://$host$request_uri; | ||
33 | } | ||
34 | |||