Playground-Caddyfile.j2 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. {{ nip_domain }}/ws-rpc* {
  2. uri strip_prefix /ws-rpc
  3. reverse_proxy localhost:9944
  4. }
  5. {{ nip_domain }}/http-rpc* {
  6. uri strip_prefix /http-rpc
  7. reverse_proxy localhost:9933
  8. }
  9. {{ nip_domain }}/colossus-1* {
  10. uri strip_prefix /colossus-1
  11. reverse_proxy localhost:3333
  12. }
  13. {{ nip_domain }}/distributor-1* {
  14. uri strip_prefix /distributor-1
  15. reverse_proxy localhost:3334
  16. }
  17. # newer versions of graphql-server seems to expect this url also
  18. {{ nip_domain }}/@apollographql/* {
  19. reverse_proxy localhost:8081
  20. }
  21. {{ nip_domain }}/query-node/server* {
  22. uri strip_prefix /query-node/server
  23. reverse_proxy localhost:8081
  24. }
  25. wss://{{ nip_domain }}/query-node/server* {
  26. uri strip_prefix /query-node/server
  27. reverse_proxy localhost:8081
  28. }
  29. {{ nip_domain }}/query-node/indexer* {
  30. uri strip_prefix /query-node/indexer
  31. reverse_proxy localhost:4000
  32. }
  33. {{ nip_domain }}/orion* {
  34. uri strip_prefix /orion
  35. reverse_proxy localhost:6116
  36. }
  37. {{ nip_domain }}/member-faucet* {
  38. uri strip_prefix /member-faucet
  39. reverse_proxy localhost:3002
  40. }
  41. {{ nip_domain }}/network/config.json {
  42. header /* {
  43. Access-Control-Allow-Origin *
  44. Cache-Control: no-cache
  45. }
  46. root * /home/ubuntu
  47. rewrite * /config.json
  48. file_server
  49. }