32 lines
692 B
Plaintext
32 lines
692 B
Plaintext
server {
|
|
include sourcehut.conf;
|
|
include port80.conf;
|
|
server_name paste.sr.ht pasta.sr.ht;
|
|
}
|
|
|
|
server {
|
|
include sourcehut.conf;
|
|
include port443.conf;
|
|
include paste-ssl.conf;
|
|
server_name paste.sr.ht pasta.sr.ht;
|
|
|
|
client_max_body_size 10M;
|
|
|
|
location / {
|
|
proxy_pass http://127.0.0.1:5011;
|
|
include headers.conf;
|
|
add_header Content-Security-Policy "default-src 'none'; style-src 'self' 'unsafe-inline'; img-src * data:; script-src 'self' 'unsafe-inline'; frame-ancestors 'none'" always;
|
|
include web.conf;
|
|
}
|
|
|
|
location /query {
|
|
proxy_pass http://127.0.0.1:5111;
|
|
include graphql.conf;
|
|
}
|
|
|
|
location /static {
|
|
root /usr/lib/$python/site-packages/pastesrht;
|
|
expires 30d;
|
|
}
|
|
}
|