1
0

builds.sr.ht.conf 539 B

123456789101112131415161718192021222324
  1. server {
  2. include sourcehut.conf;
  3. include port80.conf;
  4. server_name builds.localtest.me;
  5. client_max_body_size 100M;
  6. location / {
  7. proxy_pass http://srhts:5002;
  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'" always;
  10. include web.conf;
  11. }
  12. location /query {
  13. proxy_pass http://srhts:5102;
  14. include graphql.conf;
  15. }
  16. location /static {
  17. root /usr/lib/$python/site-packages/buildsrht;
  18. expires 30d;
  19. }
  20. }