man.sr.ht.conf 434 B

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