Skip to content

Commit

Permalink
heroku setup fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kirill-markin committed Dec 30, 2024
1 parent d3ad6ff commit 2ad63d3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docker/Dockerfile.heroku
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,20 @@ COPY --from=ozma /usr/share/caddy /usr/share/caddy

# Create Caddyfile with proper configuration for Heroku
RUN echo ":{$PORT} {\n\
handle_path /api/* {\n\
route /api/* {\n\
uri strip_prefix /api\n\
reverse_proxy ozmadb:5000\n\
}\n\
\n\
handle /auth/* {\n\
route /auth/* {\n\
reverse_proxy keycloak:8080\n\
}\n\
\n\
handle /report-generator/* {\n\
route /report-generator/* {\n\
reverse_proxy ozma-report-generator:5000\n\
}\n\
\n\
handle {\n\
route /* {\n\
root * /usr/share/caddy\n\
file_server\n\
try_files {path} /index.html\n\
Expand Down

0 comments on commit 2ad63d3

Please sign in to comment.