sr.ht-nginx/meta.sr.ht.conf

41 lines
1.1 KiB
Plaintext

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; frame-ancestors 'none'" 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; frame-ancestors 'none'" always;
include web.conf;
include spam.conf;
}
location /.well-known/oauth-authorization-server {
proxy_pass http://127.0.0.1:5000;
}
location /query {
proxy_pass http://127.0.0.1:5100;
include graphql.conf;
}
location /static {
root /usr/lib/$python/site-packages/metasrht;
expires 30d;
}
}