offload Caddyfile to services/ dir
This commit is contained in:
parent
d7edb90e78
commit
72f59bcaca
5
.gitignore
vendored
5
.gitignore
vendored
|
@ -9,12 +9,15 @@
|
||||||
!**/README.md
|
!**/README.md
|
||||||
!.gitignore
|
!.gitignore
|
||||||
!**/compose.yml
|
!**/compose.yml
|
||||||
!**/Caddyfile
|
|
||||||
!**/.env.example
|
!**/.env.example
|
||||||
!**/Dockerfile
|
!**/Dockerfile
|
||||||
|
|
||||||
|
#Caddy
|
||||||
|
!**/Caddyfile
|
||||||
|
!**/services/*.caddy
|
||||||
|
|
||||||
#DDNS updater
|
#DDNS updater
|
||||||
|
|
||||||
!**/data/config.json
|
!**/data/config.json
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,12 @@
|
||||||
api_secret_key {$PORKBUN_API_SECRET_KEY}
|
api_secret_key {$PORKBUN_API_SECRET_KEY}
|
||||||
}
|
}
|
||||||
|
|
||||||
#Debugging stuff
|
# Used for Debugging
|
||||||
#acme_ca https://acme-staging-v02.api.letsencrypt.org/directory
|
# 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
|
# auto_https off
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,10 +27,8 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pdf2.mixel.cloud {
|
# Import service-specific Caddyfiles
|
||||||
import logging
|
import /etc/caddy/services/*.caddy
|
||||||
reverse_proxy 192.168.178.230:55556
|
|
||||||
}
|
|
||||||
|
|
||||||
code-server.mini1.docker.local {
|
code-server.mini1.docker.local {
|
||||||
import logging
|
import logging
|
||||||
|
@ -48,19 +50,11 @@ ha.mini1.docker.local {
|
||||||
reverse_proxy 192.168.178.230:8123
|
reverse_proxy 192.168.178.230:8123
|
||||||
}
|
}
|
||||||
|
|
||||||
https://mini1.docker.local {
|
mini1.docker.local {
|
||||||
reverse_proxy http://192.168.178.230:55556
|
reverse_proxy 192.168.178.230:55556
|
||||||
}
|
}
|
||||||
|
|
||||||
http://192.168.178.230 {
|
pihole.local {
|
||||||
reverse_proxy http://192.168.178.230:55556
|
|
||||||
}
|
|
||||||
|
|
||||||
:81 {
|
|
||||||
respond "Hello, World!"
|
|
||||||
}
|
|
||||||
|
|
||||||
http://pihole.local {
|
|
||||||
handle_path /* {
|
handle_path /* {
|
||||||
rewrite * /admin{path}
|
rewrite * /admin{path}
|
||||||
reverse_proxy 192.168.178.244
|
reverse_proxy 192.168.178.244
|
||||||
|
|
|
@ -11,9 +11,12 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- ./Caddyfile:/etc/caddy/Caddyfile
|
- ./Caddyfile:/etc/caddy/Caddyfile
|
||||||
- ./site:/srv
|
- ./site:/srv
|
||||||
|
- ./logs:/var/log/caddy
|
||||||
|
# extra Caddyfiles
|
||||||
|
- ./services:/etc/caddy/services
|
||||||
|
# volume data
|
||||||
- caddy_data:/data
|
- caddy_data:/data
|
||||||
- caddy_config:/config
|
- caddy_config:/config
|
||||||
- ./logs:/var/log/caddy
|
|
||||||
networks:
|
networks:
|
||||||
- caddy
|
- caddy
|
||||||
env_file:
|
env_file:
|
||||||
|
|
3
caddy/services/stirling-pdf.caddy
Normal file
3
caddy/services/stirling-pdf.caddy
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
pdf2.mixel.cloud {
|
||||||
|
reverse_proxy 192.168.178.230:55556
|
||||||
|
}
|
Loading…
Reference in a new issue