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 }