meta.sr.ht.conf 864 B

123456789101112131415161718192021222324252627
  1. server {
  2. include sourcehut.conf;
  3. include port80.conf;
  4. server_name meta.localtest.me;
  5. location / {
  6. proxy_pass http://srhts:5000;
  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' 'unsafe-inline' *.stripe.com *.stripe.network; frame-src *.stripe.com *.stripe.network" always;
  9. include web.conf;
  10. }
  11. location /register {
  12. proxy_pass http://srhts:5000;
  13. add_header Content-Security-Policy "default-src 'none'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; script-src 'self' 'unsafe-inline' *.stripe.com *.stripe.network; frame-src *.stripe.com *.stripe.network" always;
  14. }
  15. location /query {
  16. proxy_pass http://srhts:5100;
  17. include graphql.conf;
  18. }
  19. location /static {
  20. root /usr/lib/$python/site-packages/metasrht;
  21. expires 30d;
  22. }
  23. }