Skip to content

Commit

Permalink
fix 502
Browse files Browse the repository at this point in the history
  • Loading branch information
yapishu committed Sep 21, 2022
1 parent 239ea1e commit d320b2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/caddy_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def add_502():
)
]
)])
api(path='apps/http/servers/srv0/errors', method='POST', data=errors)
api_post(path='apps/http/servers/srv0/errors', data=errors)
return True

# Basic API call pattern
Expand Down
1 change: 1 addition & 0 deletions caddy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN chmod +x /usr/bin/caddy
RUN apk add --no-cache libcap curl
RUN setcap 'cap_net_bind_service=+ep' /usr/bin/caddy
COPY ./default_config.json /etc/caddy/
COPY ./www/502.html /www/
RUN echo "#!/bin/ash" > /init
RUN echo "ip route add 10.13.13.0/24 via 172.20.0.2" >> /init
RUN echo "exec caddy run --config /etc/caddy/default_config.json --resume" >> /init
Expand Down

0 comments on commit d320b2e

Please sign in to comment.