~bigbes/sr-ht-compare

ref: a4853d05281d40832e011b6f03a558c7555b997d sr-ht-compare/contrib/compare.sr.ht.conf -rw-r--r-- 858 bytes
a4853d05 — Eugene Blikh rename module to sourcecraft.dev/bigbes/sr-ht-compare; depend on sourcecraft sr-ht-core 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
# 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;
	}
}