diff --git a/Readme.md b/Readme.md new file mode 100644 index 0000000..a970279 --- /dev/null +++ b/Readme.md @@ -0,0 +1,23 @@ +# Caddy Podman installation + +## Configuration + +```bash +# Set secret +podman secret create addy-token $PATH_TO_FILE_CONTAINING_DESEC_TOKEN + +# Copy templates +cp config.env.tmpl config.env +cp Caddyfile.tmpl Caddyfile +``` + +## Firewall settings + +```bash +# Create port forwardings for port 80 and 443 +sudo firewall-cmd --permanent --add-forward-port=port=80:proto=tcp:toport=8080 +sudo firewall-cmd --permanent --add-forward-port=port=443:proto=tcp:toport=8443 + +# Reload firewall +sudo firewall-cmd --reload +``` \ No newline at end of file diff --git a/caddy.container b/caddy.container index 20dcfe8..24f75df 100644 --- a/caddy.container +++ b/caddy.container @@ -10,7 +10,7 @@ Volume=./Caddyfile:/etc/caddy/Caddyfile:ro,Z Volume=caddy-data:/data Volume=caddy-config:/config -Secret=desec-token,type=env,target=GANDI_BEARER_TOKEN +Secret=desec-token,type=env,target=DESEC_TOKEN # For ACME notifications EnvironmentFile=./config.env