From fcfb621e25f52c070bda6c3880aa77dd01ffdbdb Mon Sep 17 00:00:00 2001 From: Jean-Yves <7360784+docjyJ@users.noreply.github.com> Date: Sat, 15 Jun 2024 16:52:06 +0200 Subject: [PATCH] Add NocoDB Signed-off-by: Jean-Yves <7360784+docjyJ@users.noreply.github.com> --- start.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/start.sh b/start.sh index 90fea08..c4ad41e 100644 --- a/start.sh +++ b/start.sh @@ -82,6 +82,22 @@ https://ldap.{\$NC_DOMAIN}:443 { CADDY fi +if [ -n "$(dig A +short nextcloud-aio-nocodb)" ] && ! grep -q nextcloud-aio-nocodb /Caddyfile; then + cat << CADDY >> /Caddyfile +https://tables.{\$NC_DOMAIN}:443 { + # import GEOFILTER + reverse_proxy nextcloud-aio-nocodb:10028 + + # TLS options + tls { + issuer acme { + disable_http_challenge + } + } +} +CADDY +fi + if nc -z host.docker.internal 8096 && ! grep -q "host.docker.internal:8096" /Caddyfile; then cat << CADDY >> /Caddyfile https://media.{\$NC_DOMAIN}:443 {