-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnginx.conf.example
53 lines (44 loc) · 1.65 KB
/
nginx.conf.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
server {
server_name capsuleer.app;
location / {
proxy_pass http://unix:/tmp/prod.esi.sock;
proxy_set_header X-Real-IP $remote_addr;
}
location /characters/training {
proxy_pass http://unix:/tmp/prod.esi.sock;
proxy_set_header X-Real-IP $remote_addr;
proxy_buffering off;
}
location = / {
alias /home/capsuleer.app/static/;
gzip_static on;
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "no-referrer" always;
add_header Content-Security-Policy "default-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'sha256-Y+auAOxJ80eMOXCc9GpF1FTzpSp0o6Fa4woQvmdpGfA=' 'sha256-/joNxkP90Y8TPMYnwhqfqoCZYM4WFh9Z84JxIifane0='; img-src https://images.evetech.net/ https://web.ccpgamescdn.com 'self' data:; connect-src 'self' https://esi.evetech.net; " always;
add_header Cache-Control must-revalidate;
charset UTF-8;
try_files index.html index.html;
}
location = /s/ {
return 404;
}
location /s/ {
add_header Cache-Control public;
alias /home/capsuleer.app/static/;
gzip_static on;
if ($query_string) {
expires max;
}
}
location = /favicon.ico {
alias /home/capsuleer.app/static/favicon.ico;
gzip_static on;
}
listen [::]:443 ssl http2; # managed by Certbot
listen 443 http2 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/capsuleer.app/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/capsuleer.app/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}