Skip to content

Commit

Permalink
fix(openchallenges): fix OC Caddy routing for /api (ARCH-371) (#2949)
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaffter authored Dec 17, 2024
1 parent 5681e28 commit f33cd29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions apps/openchallenges/apex/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
}

handle_path /api* {
rewrite * /api{uri}
reverse_proxy {env.API_GATEWAY_HOST}:{env.API_GATEWAY_PORT}
}

Expand Down
4 changes: 2 additions & 2 deletions docker/openchallenges/services/apex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f33cd29

Please sign in to comment.