paste.sr.ht.conf 544 B

123456789101112131415161718192021222324
  1. server {
  2. include sourcehut.conf;
  3. include port80.conf;
  4. server_name paste.sr.ht pasta.localtest.me;
  5. client_max_body_size 10M;
  6. location / {
  7. proxy_pass http://srhts:5011;
  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:5111;
  14. include graphql.conf;
  15. }
  16. location /static {
  17. root /usr/lib/$python/site-packages/pastesrht;
  18. expires 30d;
  19. }
  20. }