server {
listen 8080;
gzip on;
gzip_types text/css text/html;
server_name todo.intra.dominic-ricottone.com;
client_max_body_size 100M;
location / {
proxy_pass http://localhost:5003;
include headers.conf;
add_header Content-Security-Policy "default-src 'none'; style-src 'self' 'unsafe-inline'; img-src * data:; script-src 'self' 'unsafe-inline'" always;
include web.conf;
}
location /query {
proxy_pass http://localhost:5103;
include graphql.conf;
}
location /static {
root /usr/lib/python3.9/site-packages/todosrht;
expires 30d;
}
}