From 5af40d6e333d98d412857a671eb217afa942d084 Mon Sep 17 00:00:00 2001 From: baldarn Date: Mon, 26 Sep 2022 14:50:42 +0200 Subject: [PATCH] removed confs --- gitea/config.json | 10 +++------- gitea/rootfs/etc/cont-init.d/99-run.sh | 15 --------------- 2 files changed, 3 insertions(+), 22 deletions(-) diff --git a/gitea/config.json b/gitea/config.json index 4f7847c51..ae1d659be 100644 --- a/gitea/config.json +++ b/gitea/config.json @@ -14,8 +14,7 @@ "options": { "certfile": "fullchain.pem", "keyfile": "privkey.pem", - "ssl": false, - "DOMAIN": "homeassistant.local" + "ssl": false }, "ports": { "22/tcp": 2222, @@ -28,13 +27,10 @@ "schema": { "certfile": "str", "keyfile": "str", - "ssl": "bool", - "APP_NAME": "str?", - "DOMAIN": "str", - "ROOT_URL": "str?" + "ssl": "bool" }, "slug": "gitea", - "url": "https://github.com/baldarn/hassio-addons/tree/master/gitea", + "url": "https://github.com/alexbelgium/hassio-addons/tree/master/gitea", "version": "1.17.2-1", "webui": "[PROTO:ssl]://[HOST]:[PORT:3000]" } diff --git a/gitea/rootfs/etc/cont-init.d/99-run.sh b/gitea/rootfs/etc/cont-init.d/99-run.sh index 262e799d0..8b563918f 100644 --- a/gitea/rootfs/etc/cont-init.d/99-run.sh +++ b/gitea/rootfs/etc/cont-init.d/99-run.sh @@ -13,21 +13,6 @@ fi sed -i "/HTTP_PORT/d" "$file" sed -i "/server/a HTTP_PORT = $(bashio::addon.port 3000)" "$file" - -############## -# OTHER CONF # -############## - -for param in APP_NAME DOMAIN ROOT_URL; do - # Remove parameter - sed -i "/$param/d" "$file" - - # Define parameter - if bashio::config.has_value "$param"; then - echo "parameter set : $param=$(bashio::config '$param')" - sed -i "/server/a $param = $(bashio::config '$param')" "$file" - fi -done ############## # SSL CONFIG #