Fixed: Readme + Containerfile

This commit is contained in:
Jan Funke 2025-12-04 08:31:35 +01:00
parent a61057d455
commit 21c5aa7ab3
No known key found for this signature in database
2 changed files with 24 additions and 1 deletions

23
Readme.md Normal file
View File

@ -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
```

View File

@ -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