From 1ad47b5339428cb6da1e42618f920f3e4ea48ebb Mon Sep 17 00:00:00 2001 From: awieczarek Date: Sat, 19 Oct 2024 14:01:03 +0200 Subject: [PATCH] fix --- Dockerfile | 4 ++++ app.ini | 9 ++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index cabdb79..88635c0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,3 +9,7 @@ ENV GITEA__database__PASSWD=${DATABASE_PASSWORD} ENV GITEA_CUSTOM=/var/lib/gitea/custom COPY app.ini /var/lib/gitea/custom/conf/app.ini + +RUN sed -i "s/HTTP_PORT\s*=\s*3000/HTTP_PORT = $PORT/" /var/lib/gitea/custom/conf/app.ini +RUN sed -i "s#ROOT_URL\s*=\s*http://localhost/#ROOT_URL = http://localhost:$PORT/#" /var/lib/gitea/custom/conf/app.ini + diff --git a/app.ini b/app.ini index 876faf2..9b3392e 100644 --- a/app.ini +++ b/app.ini @@ -7,4 +7,11 @@ PASSWD = gitea SSL_MODE = disable [server] -HTTP_PORT = $PORT +DOMAIN = localhost +HTTP_PORT = 3000 +ROOT_URL = http://localhost:3000/ +SSH_PORT = 2222 + +[repository] +ROOT = /data/git/repositories +