diff --git a/apps/openchallenges/apex/Caddyfile b/apps/openchallenges/apex/Caddyfile index 7d196d094..e1fa908d5 100644 --- a/apps/openchallenges/apex/Caddyfile +++ b/apps/openchallenges/apex/Caddyfile @@ -4,6 +4,7 @@ } handle_path /api* { + rewrite * /api{uri} reverse_proxy {env.API_GATEWAY_HOST}:{env.API_GATEWAY_PORT} } diff --git a/docker/openchallenges/services/apex.yml b/docker/openchallenges/services/apex.yml index 606beecbd..20f44307e 100644 --- a/docker/openchallenges/services/apex.yml +++ b/docker/openchallenges/services/apex.yml @@ -5,8 +5,8 @@ services: restart: always env_file: - ../../../apps/openchallenges/apex/.env - # volumes: - # - ../../../apps/openchallenges/apex/Caddyfile:/etc/caddy/Caddyfile + volumes: + - ../../../apps/openchallenges/apex/Caddyfile:/etc/caddy/Caddyfile networks: - openchallenges ports: