Skip to content

Commit

Permalink
Update Caddy configuration to use file system storage and disable aut…
Browse files Browse the repository at this point in the history
…o HTTPS; upgrade GitHub Actions checkout to version 4.
  • Loading branch information
nsouto committed Sep 13, 2024
1 parent f520fd8 commit c4c4b6b
Show file tree
Hide file tree
Showing 5 changed files with 7,778 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/caddy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
lfs: true

Expand Down
14 changes: 6 additions & 8 deletions caddy/etc/caddy/Caddyfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{
on_demand_tls {
ask {$CADDY_ORIGIN_DOMAIN_CHECK_URL}
}
auto_https off
on_demand_tls {
ask {$CADDY_ORIGIN_DOMAIN_CHECK_URL}
}

storage dynamodb {$CADDY_DYNAMODB_TABLE_NAME} {
aws_region {$CADDY_DYNAMODB_AWS_REGION}
}
storage file_system {
root {$CADDY_CERTS_PATH:/etc/caddy/certs}
}

:80 {
Expand All @@ -15,7 +14,6 @@
:443 {
tls {$CADDY_LETS_ENCRYPT_EMAIL} {
on_demand
dns powerdns {$CADDY_POWERDNS_SERVER_URL} {$CADDY_POWERDNS_API_TOKEN}
}

reverse_proxy {$CADDY_ORIGIN_URL}
Expand Down
Empty file added caddy/etc/caddy/certs/.gitkeep
Empty file.
Loading

0 comments on commit c4c4b6b

Please sign in to comment.