~dricottone/huttese

ref: 6476da76a8eeec0a2a48c53eefcaf3eae20c144a huttese/sr/etc/nginx/http.d/lists.conf -rw-r--r-- 565 bytes
6476da76Dominic Ricottone Refactoring 2 years 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
server {
	listen 8080;
	gzip on;
	gzip_types text/css text/html;
	server_name lists.intra.dominic-ricottone.com;
	client_max_body_size 100M;

	location / {
		proxy_pass http://localhost:5006;
		include headers.conf;
		add_header Content-Security-Policy "default-src 'none'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; script-src 'self' 'unsafe-inline'";
		include web.conf;
	}

	location /query {
		proxy_pass http://localhost:5106;
		include graphql.conf;
	}

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