Add webserver config

This commit is contained in:
JonOfUs 2025-05-28 13:58:04 +02:00
parent 3a17003bfd
commit 440f7a86bf
4 changed files with 36 additions and 0 deletions

5
web/README.md Normal file
View File

@ -0,0 +1,5 @@
### Start Caddy
- `docker-compose up -d`
### Restart Caddy after Caddyfile change
- `docker restart caddy`

14
web/config/Caddyfile Normal file
View File

@ -0,0 +1,14 @@
{
servers {
protocols h1
}
}
rsca.vanrissenbeck.com {
log
file_server {
root /srv
}
}

15
web/docker-compose.yml Normal file
View File

@ -0,0 +1,15 @@
services:
caddy:
container_name: caddy
image: caddy:latest
cap_add:
- NET_ADMIN
network_mode: host
# ports:
# - "80:80"
# - "443:443"
# - "443:443/udp"
volumes:
- ./www:/srv
- ./config:/etc/caddy
- ./data:/data

2
web/www/index.html Normal file
View File

@ -0,0 +1,2 @@
Hello, World!