From bbf63c197d51580c1da7e3db1bd117988347f203 Mon Sep 17 00:00:00 2001 From: Mika Bomm Date: Fri, 20 Sep 2024 13:07:34 +0200 Subject: [PATCH] edit ddns-updater config --- .gitignore | 4 +--- caddy/services/homeassistant.caddy | 4 ++++ ddns-updater/compose.yaml | 1 + ddns-updater/data/config.json | 19 ------------------- ddns-updater/data/config.json.backup | 13 +++++++++++++ 5 files changed, 19 insertions(+), 22 deletions(-) delete mode 100755 ddns-updater/data/config.json create mode 100644 ddns-updater/data/config.json.backup diff --git a/.gitignore b/.gitignore index c77c99f..05d2329 100644 --- a/.gitignore +++ b/.gitignore @@ -20,9 +20,7 @@ !**/services/*.caddy #DDNS updater - -!**/data/config.json - +!**/data/config.json.backup # Homeassistant !**/homeassistant/config/configuration.yaml diff --git a/caddy/services/homeassistant.caddy b/caddy/services/homeassistant.caddy index 2cce51b..305293c 100644 --- a/caddy/services/homeassistant.caddy +++ b/caddy/services/homeassistant.caddy @@ -1,4 +1,8 @@ # External +ha.mixel.cloud { + reverse_proxy 192.168.178.230:8123 +} + # Internal ha.mini1.docker.local { diff --git a/ddns-updater/compose.yaml b/ddns-updater/compose.yaml index 081a12b..1d02ab3 100644 --- a/ddns-updater/compose.yaml +++ b/ddns-updater/compose.yaml @@ -1,6 +1,7 @@ services: ddns-updater: container_name: ddns-updater + user: 1001:1001 ports: - 55555:8000/tcp volumes: diff --git a/ddns-updater/data/config.json b/ddns-updater/data/config.json deleted file mode 100755 index 8d37331..0000000 --- a/ddns-updater/data/config.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "settings": [ - { - "provider": "porkbun", - "domain": "ddns.mixel.cloud", - "api_key": "${PORKBUN_API_KEY}", - "secret_api_key": "${PORKBUN_API_SECRET_KEY}", - "ip_version": "ipv4" - }, - { - "provider": "porkbun", - "domain": "pdf2.mixel.cloud", - "api_key": "${PORKBUN_API_KEY}", - "secret_api_key": "${PORKBUN_API_SECRET_KEY}", - "ip_version": "ipv4" - } - - ] -} diff --git a/ddns-updater/data/config.json.backup b/ddns-updater/data/config.json.backup new file mode 100644 index 0000000..c9ef44e --- /dev/null +++ b/ddns-updater/data/config.json.backup @@ -0,0 +1,13 @@ +{ + "settings": [ + { + "provider": "porkbun", + "domain": "*.mixel.cloud", + "api_key": "${PORKBUN_API_KEY}", + "secret_api_key": "${PORKBUN_API_SECRET_KEY}", + "ip_version": "ipv4" + } + ] +} + +# ENV variables have to be changed to plaintext again since JSON doesnt support env variables \ No newline at end of file