~bigbes/sr-ht-compare

ref: 4e7c6329e40c58e790e98774d456af93c2e56bc5 sr-ht-compare/contrib/compare.sr.ht.conf -rw-r--r-- 858 bytes
4e7c6329 — bigbes web: full-width split diff view with a rendered file tree 30 days 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
# nginx server block for compare.sr.ht (sr.ht-nginx style).
#
# Drop into the sr.ht-nginx config alongside the other *.sr.ht.conf files and
# adjust server_name to the instance domain (e.g. compare.srht.bigb.es).
# compare.sr.ht serves its own static assets from the embedded FS with
# immutable cache headers, so everything is proxied to the app; there is no
# GraphQL /query endpoint of its own.

server {
	include sourcehut.conf;
	include port80.conf;
	server_name compare.sr.ht;
}

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

	location / {
		proxy_pass http://127.0.0.1:5090;
		include headers.conf;
		add_header Content-Security-Policy "default-src 'none'; style-src 'self' 'unsafe-inline'; img-src * data:; script-src 'self'; frame-ancestors 'none'" always;
		include web.conf;
	}
}