~dricottone/huttese

ref: 2d2a6f66c88338f618bb6b6e5ceb6c26aec64b89 huttese/sr/etc/nginx/http.d/todo.conf -rw-r--r-- 1.3 KiB
2d2a6f66Dominic Ricottone Major updates 1 year, 7 months ago
                                                                                
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
58
59
60
61
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.lets-encrypt.cert;
	ssl_certificate_key /var/lets-encrypt/inter.lets-encrypt.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_read_timeout 300s;
		proxy_connect_timeout 75s;
		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_read_timeout 300s;
		proxy_connect_timeout 75s;
		proxy_pass http://localhost:5103;
		include graphql.conf;
	}

	location /static {
		root /usr/lib/python3.10/site-packages/todosrht;
		expires 30d;
	}

	location ^~ /.well-known {
		root /var/www;
	}

	location = /robots.txt {
		root /var/www;
	}
}