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
54
55
56
57
server {
listen 80;
server_name todo.dominic-ricottone.com;
location / {
return 302 https://$server_name$request_uri;
}
location ^~ /.well-known {
root /var/www;
}
location = /robots.txt {
root /var/www;
}
}
server {
listen 443 ssl http2;
gzip on;
gzip_types text/css text/html;
server_name todo.dominic-ricottone.com;
ssl_certificate /var/lets-encrypt/inter.dominic-ricottone.com.cert;
ssl_certificate_key /var/lets-encrypt/inter.dominic-ricottone.com.key;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers ECDHE-RSA-AES256-GCM-SHA512:DHE-RSA-AES256-GCM-SHA512:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384;
ssl_prefer_server_ciphers on;
client_max_body_size 100M;
location / {
proxy_pass http://localhost:5003;
include headers.conf;
add_header Content-Security-Policy "default-src 'none'; style-src 'self' 'unsafe-inline'; img-src * data:; script-src 'self' 'unsafe-inline'" always;
include web.conf;
}
location /query {
proxy_pass http://localhost:5103;
include graphql.conf;
}
location /static {
root /usr/lib/python3.9/site-packages/todosrht;
expires 30d;
}
location ^~ /.well-known {
root /var/www;
}
location = /robots.txt {
root /var/www;
}
}