improve caddy
This commit is contained in:
parent
0c4eed7709
commit
bce4a0ba8f
3 changed files with 39 additions and 21 deletions
|
@ -22,3 +22,12 @@ end_of_line = lf
|
|||
indent_style = space
|
||||
indent_size = 4
|
||||
tab_width = 4
|
||||
|
||||
[Caddyfile]
|
||||
indent_style = tab
|
||||
indent_size = 4
|
||||
tab_width = 4
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
|
|
|
@ -1,44 +1,51 @@
|
|||
{
|
||||
auto_https off
|
||||
auto_https off
|
||||
log default {
|
||||
output stdout
|
||||
format console
|
||||
}
|
||||
}
|
||||
|
||||
http://whoami.lan {
|
||||
reverse_proxy whoami:80
|
||||
http://whoami.{$DOMAIN} {
|
||||
reverse_proxy whoami:80
|
||||
}
|
||||
|
||||
http://dashboard.lan {
|
||||
reverse_proxy homer:8080
|
||||
http://dashboard.{$DOMAIN} {
|
||||
reverse_proxy homer:8080
|
||||
}
|
||||
|
||||
http://hassi.lan {
|
||||
# reverse_proxy homeassistant:8123
|
||||
reverse_proxy dockerhost-1.lan:8123
|
||||
http://hassi.{$DOMAIN} {
|
||||
# reverse_proxy homeassistant:8123
|
||||
reverse_proxy {host}:8123
|
||||
}
|
||||
|
||||
http://zigbee2mqtt.lan {
|
||||
reverse_proxy zigbee2mqtt:8080
|
||||
http://zigbee2mqtt.{$DOMAIN} {
|
||||
reverse_proxy zigbee2mqtt:8080
|
||||
}
|
||||
|
||||
http://jellyfin.lan {
|
||||
reverse_proxy jellyfin:8096
|
||||
http://jellyfin.{$DOMAIN} {
|
||||
reverse_proxy jellyfin:8096
|
||||
}
|
||||
|
||||
http://paperless.lan {
|
||||
reverse_proxy paperless-ngx:8000
|
||||
http://paperless.{$DOMAIN} {
|
||||
reverse_proxy paperless-ngx:8000
|
||||
}
|
||||
|
||||
http://download.lan {
|
||||
reverse_proxy pyload:8000
|
||||
http://download.{$DOMAIN} {
|
||||
reverse_proxy pyload:8000
|
||||
}
|
||||
|
||||
http://uptime.lan {
|
||||
reverse_proxy uptime-kuma:3001
|
||||
http://uptime.{$DOMAIN} {
|
||||
reverse_proxy uptime-kuma:3001
|
||||
}
|
||||
|
||||
http://torrent.lan {
|
||||
reverse_proxy transmission:9091
|
||||
http://torrent.{$DOMAIN} {
|
||||
reverse_proxy transmission:9091
|
||||
}
|
||||
|
||||
:80, :443 {
|
||||
respond 404
|
||||
respond "404 Not Found" 404
|
||||
handle_errors {
|
||||
respond "{err.status_code} {err.status_text}" {err.status_code}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,6 +11,8 @@ services:
|
|||
- ./Caddyfile:/etc/caddy/Caddyfile:ro
|
||||
networks:
|
||||
- web
|
||||
environment:
|
||||
- DOMAIN=${DOMAIN}
|
||||
|
||||
|
||||
whoami:
|
||||
|
|
Loading…
Add table
Reference in a new issue