offload Caddyfile to services/ dir

This commit is contained in:
Mika Bomm 2024-08-03 23:55:57 +02:00
parent d7edb90e78
commit 72f59bcaca
4 changed files with 22 additions and 19 deletions

5
.gitignore vendored
View file

@ -9,12 +9,15 @@
!**/README.md
!.gitignore
!**/compose.yml
!**/Caddyfile
!**/.env.example
!**/Dockerfile
#Caddy
!**/Caddyfile
!**/services/*.caddy
#DDNS updater
!**/data/config.json

View file

@ -10,8 +10,12 @@
api_secret_key {$PORKBUN_API_SECRET_KEY}
}
#Debugging stuff
#acme_ca https://acme-staging-v02.api.letsencrypt.org/directory
# Used for Debugging
# This will request a certificate from staging and not from prod
# Staging has a higher rate limit
# acme_ca https://acme-staging-v02.api.letsencrypt.org/directory
# This makes every subdomain used for http only
# auto_https off
}
@ -23,10 +27,8 @@
}
}
pdf2.mixel.cloud {
import logging
reverse_proxy 192.168.178.230:55556
}
# Import service-specific Caddyfiles
import /etc/caddy/services/*.caddy
code-server.mini1.docker.local {
import logging
@ -48,19 +50,11 @@ ha.mini1.docker.local {
reverse_proxy 192.168.178.230:8123
}
https://mini1.docker.local {
reverse_proxy http://192.168.178.230:55556
mini1.docker.local {
reverse_proxy 192.168.178.230:55556
}
http://192.168.178.230 {
reverse_proxy http://192.168.178.230:55556
}
:81 {
respond "Hello, World!"
}
http://pihole.local {
pihole.local {
handle_path /* {
rewrite * /admin{path}
reverse_proxy 192.168.178.244

View file

@ -11,9 +11,12 @@ services:
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- ./site:/srv
- ./logs:/var/log/caddy
# extra Caddyfiles
- ./services:/etc/caddy/services
# volume data
- caddy_data:/data
- caddy_config:/config
- ./logs:/var/log/caddy
networks:
- caddy
env_file:

View file

@ -0,0 +1,3 @@
pdf2.mixel.cloud {
reverse_proxy 192.168.178.230:55556
}