Advertisement
Guest User

Untitled

a guest
Aug 14th, 2023
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. (caddy-common) {
  2. encode gzip
  3. header {
  4. -Server
  5. Strict-Transport-Security "max-age=31536000; include-subdomains;"
  6. X-XSS-Protection "1; mode=block"
  7. X-Frame-Options "DENY"
  8. X-Content-Type-Options nosniff
  9. Referrer-Policy no-referrer-when-downgrade
  10. X-Robots-Tag "none"
  11. }
  12. }
  13.  
  14. tw.arkadi.one {
  15. import caddy-common
  16. reverse_proxy http://localhost:1234
  17.  
  18.  
  19. @lemmy {
  20. path /api/*
  21. path /pictrs/*
  22. path /feeds/*
  23. path /nodeinfo/*
  24. path /.well-known/*
  25. }
  26.  
  27. @lemmy-hdr {
  28. header Accept application/*
  29. }
  30.  
  31. handle @lemmy {
  32. reverse_proxy http://lemmy_lemmy_1:8536
  33. }
  34.  
  35. handle @lemmy-hdr {
  36. reverse_proxy http://lemmy_lemmy_1:8536
  37. }
  38.  
  39. @lemmy-post {
  40. method POST
  41. }
  42.  
  43. handle @lemmy-post {
  44. reverse_proxy http://lemmy_lemmy_1:8536
  45. }
  46. }
Tags: caddy Lemmy
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement