Caddyfile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Joystream-node
  2. wss://joystream2.yyagi.cloud/rpc {
  3. reverse_proxy localhost:9944
  4. }
  5. # Query-node
  6. https://<your.cool.url> {
  7. log {
  8. output stdout
  9. }
  10. route /server/* {
  11. uri strip_prefix /server
  12. reverse_proxy localhost:8081
  13. }
  14. route /graphql {
  15. reverse_proxy localhost:8081
  16. }
  17. route /graphql/* {
  18. reverse_proxy localhost:8081
  19. }
  20. route /gateway/* {
  21. uri strip_prefix /gateway
  22. reverse_proxy localhost:4000
  23. }
  24. route /@apollographql/* {
  25. reverse_proxy localhost:8081
  26. }
  27. }
  28. # Storage Node
  29. https://<your.cool.url>/storage/* {
  30. log {
  31. output stdout
  32. }
  33. route /storage/* {
  34. uri strip_prefix /storage
  35. reverse_proxy localhost:3333
  36. }
  37. header /storage/api/v1/ {
  38. Access-Control-Allow-Methods "GET, PUT, HEAD, OPTIONS"
  39. Access-Control-Allow-Headers "GET, PUT, HEAD, OPTIONS"
  40. }
  41. request_body {
  42. max_size 10GB
  43. }
  44. }