Skip to content

Commit

Permalink
fix(openchallenges): format Caddyfile (#2943)
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaffter authored Dec 12, 2024
1 parent 72b24a5 commit 13a4270
Showing 1 changed file with 21 additions and 25 deletions.
46 changes: 21 additions & 25 deletions apps/openchallenges/apex/Caddyfile
Original file line number Diff line number Diff line change
@@ -1,31 +1,27 @@
{
debug
}

:80 {
handle_path /api-docs* {
reverse_proxy {env.API_DOCS_HOST}:{env.API_DOCS_PORT}
}
handle_path /api-docs* {
reverse_proxy {env.API_DOCS_HOST}:{env.API_DOCS_PORT}
}

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

handle_path /health {
respond `{"status":"healthy"}` 200
header Content-Type application/json
}
handle_path /health {
respond `{"status":"healthy"}` 200
header Content-Type application/json
}

handle_path /img* {
reverse_proxy {env.THUMBOR_HOST}:{env.THUMBOR_PORT}
}
handle_path /img* {
reverse_proxy {env.THUMBOR_HOST}:{env.THUMBOR_PORT}
}

handle_path /zipkin* {
rewrite * /zipkin{uri}
reverse_proxy {env.ZIPKIN_HOST}:{env.ZIPKIN_PORT}
}
handle_path /zipkin* {
rewrite * /zipkin{uri}
reverse_proxy {env.ZIPKIN_HOST}:{env.ZIPKIN_PORT}
}

handle {
reverse_proxy {env.APP_HOST}:{env.APP_PORT}
}
}
handle {
reverse_proxy {env.APP_HOST}:{env.APP_PORT}
}
}

0 comments on commit 13a4270

Please sign in to comment.