meow
This commit is contained in:
parent
a30ff16bc2
commit
56d7d47a8b
1 changed files with 70 additions and 78 deletions
|
|
@ -125,88 +125,80 @@ in
|
||||||
systemd.services.caddy.serviceConfig.EnvironmentFile = config.age.secrets.desec.path;
|
systemd.services.caddy.serviceConfig.EnvironmentFile = config.age.secrets.desec.path;
|
||||||
services.caddy = {
|
services.caddy = {
|
||||||
# ragon.services.caddy is enabled
|
# ragon.services.caddy is enabled
|
||||||
|
extraConfig = ''
|
||||||
|
(blockBots) {
|
||||||
|
@botForbidden header_regexp User-Agent "(?i)AdsBot-Google|Amazonbot|anthropic-ai|Applebot|Applebot-Extended|AwarioRssBot|AwarioSmartBot|Bytespider|CCBot|ChatGPT|ChatGPT-User|Claude-Web|ClaudeBot|cohere-ai|DataForSeoBot|Diffbot|FacebookBot|Google-Extended|GPTBot|ImagesiftBot|magpie-crawler|omgili|Omgilibot|peer39_crawler|PerplexityBot|YouBot"
|
||||||
|
|
||||||
|
handle @botForbidden {
|
||||||
|
redir https://hil-speed.hetzner.com/10GB.bin
|
||||||
|
}
|
||||||
|
}
|
||||||
|
(podmanRedir) {
|
||||||
|
reverse_proxy {args[:]} {
|
||||||
|
transport http {
|
||||||
|
resolvers 10.88.0.1 # podman dns
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
'';
|
||||||
globalConfig = ''
|
globalConfig = ''
|
||||||
acme_dns desec {
|
acme_dns desec {
|
||||||
token "{$TOKEN}"
|
token "{$TOKEN}"
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
virtualHosts."http://*.hailsatan.eu".extraConfig = ''
|
virtualHosts."*.hailsatan.eu ".logFormat = ''
|
||||||
@bzzt-api host bzzt-api.hailsatan.eu
|
output file ${config.services.caddy.logDir}/access-*hailsatan.eu_internet.log
|
||||||
handle @bzzt-api {
|
'';
|
||||||
reverse_proxy http://127.0.0.1:5001
|
virtualHosts."*.hailsatan.eu ".extraConfig = ''
|
||||||
}
|
import blockBots
|
||||||
@bzzt-lcg host bzzt-lcg.hailsatan.eu
|
@jellyfin host j.hailsatan.eu
|
||||||
handle @bzzt-lcg {
|
handle @jellyfin {
|
||||||
reverse_proxy http://127.0.0.1:5003
|
import podmanRedir http://jellyfin:8096
|
||||||
}
|
|
||||||
@bzzt host bzzt.hailsatan.eu
|
|
||||||
handle @bzzt {
|
|
||||||
reverse_proxy http://127.0.0.1:5002
|
|
||||||
}
|
|
||||||
handle {
|
|
||||||
abort
|
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
virtualHosts."*.hailsatan.eu".extraConfig = ''
|
virtualHosts."*.hailsatan.eu".extraConfig = ''
|
||||||
|
import blockBots
|
||||||
|
# tailscale only
|
||||||
|
bind 100.83.96.25
|
||||||
@immich host immich.hailsatan.eu
|
@immich host immich.hailsatan.eu
|
||||||
handle @immich {
|
handle @immich {
|
||||||
reverse_proxy http://immich-server:3001 {
|
import podmanRedir http://immich-server:3001
|
||||||
transport http {
|
|
||||||
resolvers 10.88.0.1 # podman dns
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@cd host cd.hailsatan.eu
|
@cd host cd.hailsatan.eu
|
||||||
handle @cd {
|
handle @cd {
|
||||||
reverse_proxy http://changedetection:5000 {
|
import podmanRedir http://changedetection:5000
|
||||||
transport http {
|
|
||||||
resolvers 10.88.0.1 # podman dns
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@grafana host grafana.hailsatan.eu
|
@grafana host grafana.hailsatan.eu
|
||||||
handle @grafana {
|
handle @grafana {
|
||||||
reverse_proxy http://grafana:3000 {
|
import podmanRedir http://grafana:3000
|
||||||
transport http {
|
|
||||||
resolvers 10.88.0.1 # podman dns
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@node-red host node-red.hailsatan.eu
|
@node-red host node-red.hailsatan.eu
|
||||||
handle @node-red {
|
handle @node-red {
|
||||||
reverse_proxy http://node-red:1880 {
|
import podmanRedir http://node-red:1880
|
||||||
transport http {
|
|
||||||
resolvers 10.88.0.1 # podman dns
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@bzzt-api host bzzt-api.hailsatan.eu
|
|
||||||
handle @bzzt-api {
|
|
||||||
reverse_proxy http://127.0.0.1:5001
|
|
||||||
}
|
|
||||||
@bzzt-lcg host bzzt-lcg.hailsatan.eu
|
|
||||||
handle @bzzt-lcg {
|
|
||||||
reverse_proxy http://127.0.0.1:5003
|
|
||||||
}
|
|
||||||
@bzzt host bzzt.hailsatan.eu
|
|
||||||
handle @bzzt {
|
|
||||||
reverse_proxy http://127.0.0.1:5002
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# @bzzt-api host bzzt-api.hailsatan.eu
|
||||||
|
# handle @bzzt-api {
|
||||||
|
# reverse_proxy http://127.0.0.1:5001
|
||||||
|
# }
|
||||||
|
# @bzzt-lcg host bzzt-lcg.hailsatan.eu
|
||||||
|
# handle @bzzt-lcg {
|
||||||
|
# reverse_proxy http://127.0.0.1:5003
|
||||||
|
# }
|
||||||
|
# @bzzt host bzzt.hailsatan.eu
|
||||||
|
# handle @bzzt {
|
||||||
|
# reverse_proxy http://127.0.0.1:5002
|
||||||
|
# }
|
||||||
|
|
||||||
|
|
||||||
@archivebox host archivebox.hailsatan.eu
|
@archivebox host archivebox.hailsatan.eu
|
||||||
handle @archivebox {
|
handle @archivebox {
|
||||||
reverse_proxy http://archivebox:8000 {
|
import podmanRedir http://archivebox:8000
|
||||||
transport http {
|
|
||||||
resolvers 10.88.0.1 # podman dns
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@jellyfin host j.hailsatan.eu
|
@jellyfin host j.hailsatan.eu
|
||||||
handle @jellyfin {
|
handle @jellyfin {
|
||||||
reverse_proxy http://jellyfin:8096 {
|
import podmanRedir http://jellyfin:8096
|
||||||
transport http {
|
|
||||||
resolvers 10.88.0.1 # podman dns
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
handle {
|
handle {
|
||||||
reverse_proxy http://127.0.0.1:8001
|
reverse_proxy http://127.0.0.1:8001
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue