-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Docker setup-buildx-action to v3, modify Caddyfile to support …
…on-demand TLS and DynamoDB storage, and include caddy-mysql-storage in Dockerfile.
- Loading branch information
Showing
3 changed files
with
18 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
{ | ||
http_port 80 | ||
https_port 443 | ||
on_demand_tls { | ||
ask {$CADDY_ORIGIN_DOMAIN_CHECK_URL} | ||
} | ||
|
||
on_demand_tls { | ||
ask {$ORIGIN_DOMAIN_CHECK_URL} | ||
} | ||
storage dynamodb {$CADDY_DYNAMODB_TABLE_NAME} { | ||
aws_region {$CADDY_DYNAMODB_AWS_REGION} | ||
} | ||
} | ||
|
||
storage dynamodb {$DYNAMODB_TABLE_NAME} { | ||
aws_region {$AWS_REGION} | ||
} | ||
:80 { | ||
reverse_proxy {$CADDY_ORIGIN_URL} | ||
} | ||
|
||
## TODO: Allow configuring multiple origin URL/Servers | ||
: { | ||
tls {$LETS_ENCRYPT_EMAIL} { | ||
on_demand | ||
dns powerdns {$POWERDNS_SERVER_URL} {$POWERDNS_API_TOKEN} | ||
} | ||
:443 { | ||
tls {$CADDY_LETS_ENCRYPT_EMAIL} { | ||
on_demand | ||
dns powerdns {$CADDY_POWERDNS_SERVER_URL} {$CADDY_POWERDNS_API_TOKEN} | ||
} | ||
|
||
reverse_proxy {$ORIGIN_URL} | ||
reverse_proxy {$CADDY_ORIGIN_URL} | ||
} |