Fix minor typo errors | Change Nginx for Caddy | Consolidate templates in this repo

This commit is contained in:
2025-01-24 02:57:53 -03:00
parent 21515daef1
commit ddf0301463
15 changed files with 254 additions and 35 deletions

10
templates/caddy/Caddyfile Normal file
View File

@@ -0,0 +1,10 @@
# Static content server
domain.com {
root * /srv/static
file_server
}
# Reverse proxy
ssl.test.benitez.ar {
reverse_proxy * http://localhost:9090
}

View File

@@ -0,0 +1,14 @@
services:
caddy:
image: caddy:latest
container_name: caddy
network_mode: "host" # Allow access to local networks (EX: Backend running on port 3000)
ports:
- "80:80"
- "443:443"
volumes:
- ./settings:/etc/caddy
- ./static:/srv/static
- ./caddy_data:/data
- ./caddy_config:/config
restart: unless-stopped