Skip to content

Commit

Permalink
fixed caddy variables
Browse files Browse the repository at this point in the history
  • Loading branch information
mhmdksh committed Aug 13, 2024
1 parent fc033ac commit e313571
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
File renamed without changes.
9 changes: 8 additions & 1 deletion Caddyfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
{$MY_URL} {
reverse_proxy @allowed qacc-be:4000
route {
@allowed {
path /*
remote_ip {$IP_WHITELIST}
}
reverse_proxy @allowed qacc-be:4000
respond 403
}
}
2 changes: 1 addition & 1 deletion docker-compose-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ services:
- 80:80
- 443:443
env_file:
- .caddy.env
- .env
environment:
- MY_URL=${MY_URL:-}
- IP_WHITELIST=${IP_WHITELIST:-}
Expand Down

0 comments on commit e313571

Please sign in to comment.