~dricottone/huttese

ref: fe46d748b6290411d1878311cda721400459fe4a huttese/sr/etc/nginx/http.d/meta.conf -rw-r--r-- 903 bytes
fe46d748Dominic Ricottone Fixes to configuration 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
26
27
28
29
server {
	listen 8080;
	gzip on;
	gzip_types text/css text/html;
	server_name meta.intra.dominic-ricottone.com;

	location / {
		proxy_pass http://localhost:5000;
		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' *.stripe.com *.stripe.network; frame-src *.stripe.com *.stripe.network" always;
		include web.conf;
	}

	location /register {
		proxy_pass http://localhost:5000;
		add_header Content-Security-Policy "default-src 'none'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; script-src 'self' 'unsafe-inline' *.stripe.com *.stripe.network; frame-src *.stripe.com *.stripe.network" always;
	}

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

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