From 7a54d3ae2085beae0c5b565e2873e78457307901 Mon Sep 17 00:00:00 2001 From: Elias Schneider Date: Fri, 27 Sep 2024 11:10:33 +0200 Subject: [PATCH] refactor: format caddyfiles --- reverse-proxy/Caddyfile | 16 ++++++++-------- reverse-proxy/Caddyfile.trust-proxy | 28 ++++++++++++++-------------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/reverse-proxy/Caddyfile b/reverse-proxy/Caddyfile index c72063d..ae95db1 100644 --- a/reverse-proxy/Caddyfile +++ b/reverse-proxy/Caddyfile @@ -1,10 +1,10 @@ :80 { - reverse_proxy /api/* http://localhost:{$BACKEND_PORT:8080} - reverse_proxy /.well-known/* http://localhost:{$BACKEND_PORT:8080} - reverse_proxy /* http://localhost:{$PORT:3000} + reverse_proxy /api/* http://localhost:{$BACKEND_PORT:8080} + reverse_proxy /.well-known/* http://localhost:{$BACKEND_PORT:8080} + reverse_proxy /* http://localhost:{$PORT:3000} - log { - output file /var/log/caddy/access.log - level WARN - } -} \ No newline at end of file + log { + output file /var/log/caddy/access.log + level WARN + } +} diff --git a/reverse-proxy/Caddyfile.trust-proxy b/reverse-proxy/Caddyfile.trust-proxy index 65af165..97106c7 100644 --- a/reverse-proxy/Caddyfile.trust-proxy +++ b/reverse-proxy/Caddyfile.trust-proxy @@ -1,16 +1,16 @@ :80 { - reverse_proxy /api/* http://localhost:{$BACKEND_PORT:8080} { - trusted_proxies 0.0.0.0/0 - } - reverse_proxy /.well-known/* http://localhost:{$BACKEND_PORT:8080} { - trusted_proxies 0.0.0.0/0 - } - reverse_proxy /* http://localhost:{$PORT:3000} { - trusted_proxies 0.0.0.0/0 - } + reverse_proxy /api/* http://localhost:{$BACKEND_PORT:8080} { + trusted_proxies 0.0.0.0/0 + } + reverse_proxy /.well-known/* http://localhost:{$BACKEND_PORT:8080} { + trusted_proxies 0.0.0.0/0 + } + reverse_proxy /* http://localhost:{$PORT:3000} { + trusted_proxies 0.0.0.0/0 + } - log { - output file /var/log/caddy/access.log - level WARN - } -} \ No newline at end of file + log { + output file /var/log/caddy/access.log + level WARN + } +}