Caddyfile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # Joystream-node
  2. wss://<your.cool.url>/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. # Distributor Node
  29. https://<your.cool.url>/distributor/* {
  30. log {
  31. output stdout
  32. }
  33. route /distributor/* {
  34. uri strip_prefix /distributor
  35. reverse_proxy localhost:3334
  36. }
  37. header /distributor {
  38. Access-Control-Allow-Methods "GET, PUT, HEAD, OPTIONS, POST"
  39. Access-Control-Allow-Headers "GET, PUT, HEAD, OPTIONS, POST"
  40. }
  41. }