Fixed: Readme + Containerfile
This commit is contained in:
parent
a61057d455
commit
21c5aa7ab3
23
Readme.md
Normal file
23
Readme.md
Normal 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
|
||||||
|
```
|
||||||
@ -10,7 +10,7 @@ Volume=./Caddyfile:/etc/caddy/Caddyfile:ro,Z
|
|||||||
Volume=caddy-data:/data
|
Volume=caddy-data:/data
|
||||||
Volume=caddy-config:/config
|
Volume=caddy-config:/config
|
||||||
|
|
||||||
Secret=desec-token,type=env,target=GANDI_BEARER_TOKEN
|
Secret=desec-token,type=env,target=DESEC_TOKEN
|
||||||
|
|
||||||
# For ACME notifications
|
# For ACME notifications
|
||||||
EnvironmentFile=./config.env
|
EnvironmentFile=./config.env
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user