From aefd5f25382a9f386e5e56da4ef98ae2e86b4f84 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Sun, 26 Mar 2023 19:02:38 +0200 Subject: [PATCH] do not set ROOT_URL, override DOMAIN instead because ROOT_URL gets reset on restart from the evironment variables --- forgejo.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/forgejo.sh b/forgejo.sh index 3c706ae..e7bee3d 100755 --- a/forgejo.sh +++ b/forgejo.sh @@ -27,7 +27,6 @@ function run() { -e "RUN_MODE=dev" \ -e "FORGEJO__security__INSTALL_LOCK=true" \ -e "FORGEJO__log__LEVEL=debug" \ - -e "FORGEJO__server__ROOT_URL=http://0.0.0.0:3000/" \ -e "FORGEJO__actions__ENABLED=true" \ -e "FORGEJO__repository__ENABLE_PUSH_CREATE_USER=true" \ -e "FORGEJO__repository__DEFAULT_PUSH_CREATE_PRIVATE=false" \ @@ -35,7 +34,7 @@ function run() { -d $image local ip="$(docker inspect -f "{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}" forgejo)" echo $ip > forgejo-ip - docker exec forgejo sed -i -e "s|/0.0.0.0:3000/|/$ip:3000/|" /data/gitea/conf/app.ini + docker exec forgejo sed -i -e "s|localhost|$ip|" /data/gitea/conf/app.ini docker restart forgejo }