1
0

todo.sr.ht.conf 531 B

123456789101112131415161718192021222324
  1. server {
  2. include sourcehut.conf;
  3. include port80.conf;
  4. server_name todo.localtest.me;
  5. client_max_body_size 100M;
  6. location / {
  7. proxy_pass http://srhts:5003;
  8. include headers.conf;
  9. add_header Content-Security-Policy "default-src 'none'; style-src 'self' 'unsafe-inline'; img-src * data:; script-src 'self' 'unsafe-inline'" always;
  10. include web.conf;
  11. }
  12. location /query {
  13. proxy_pass http://srhts:5103;
  14. include graphql.conf;
  15. }
  16. location /static {
  17. root /usr/lib/$python/site-packages/todosrht;
  18. expires 30d;
  19. }
  20. }