1
0

dispatch.sr.ht.conf 420 B

1234567891011121314151617
  1. server {
  2. include sourcehut.conf;
  3. include port80.conf;
  4. server_name dispatch.localtest.me;
  5. location / {
  6. proxy_pass http://srhts:5005;
  7. include headers.conf;
  8. add_header Content-Security-Policy "default-src 'none'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; script-src 'self'" always;
  9. include web.conf;
  10. }
  11. location /static {
  12. root /usr/lib/$python/site-packages/dispatchsrht;
  13. expires 30d;
  14. }
  15. }