lists.sr.ht.conf 530 B

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