From 816cc8de8c4270e55770ef7e12d567caf6b89fab Mon Sep 17 00:00:00 2001 From: imnotacoder-eeeee Date: Wed, 31 Jul 2024 21:33:16 -0400 Subject: [PATCH] fixed --- setup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.sh b/setup.sh index 98e832f..46f6338 100755 --- a/setup.sh +++ b/setup.sh @@ -31,7 +31,7 @@ incus network attach $NETWORK_NAME $CONTAINER_NAME echo "Configuring container..." incus config set $CONTAINER_NAME security.privileged=true incus config set $CONTAINER_NAME linux.kernel_modules=overlay,nf_nat -incus config device add $CONTAINER_NAME gitea-ssh proxy listen=tcp:0.0.0.0:$SSH_PORT connect=tcp:127.0.0.1:22 +incus config device add $CONTAINER_NAME gitea-ssh proxy listen=tcp:0.0.0.0:$SSH_PORT connect=tcp:127.0.0.1:2222 incus config device add $CONTAINER_NAME gitea-web proxy listen=tcp:0.0.0.0:$WEB_PORT connect=tcp:127.0.0.1:3000 echo "Waiting for network to be ready..." @@ -88,9 +88,9 @@ ROOT = /var/lib/gitea/data/gitea-repositories [server] HTTP_PORT = 3000 -ROOT_URL = http://localhost:3000/ +ROOT_URL = http://$(incus exec $CONTAINER_NAME -- ip addr show eth0 | grep 'inet ' | awk '{print $2}' | cut -d/ -f1):$WEB_PORT/ DISABLE_SSH = false -SSH_PORT = 22 +SSH_PORT = 2222 START_SSH_SERVER = true LFS_START_SERVER = true