~sircmpwn/sr.ht-nginx

sr.ht-nginx/meta.sr.ht.conf -rw-r--r-- 999 bytes
a195e2fcDrew DeVault robots.txt: add more git.sr.ht routes a month 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
server {
	include sourcehut.conf;
	include port80.conf;
	server_name meta.sr.ht;
}

server {
	include sourcehut.conf;
	include port443.conf;
	include meta-ssl.conf;
	server_name meta.sr.ht;

	location / {
		proxy_pass http://127.0.0.1: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://127.0.0.1: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;
		include spam.conf;
	}

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

	location /static {
		root /usr/lib/$python/site-packages/metasrht;
		expires 30d;
	}
}