Compare commits

..

2 Commits

Author SHA1 Message Date
slh
670db289b1 Merge pull request 'Publish Gitea through the FRP endpoint' (#10) from feat/gitea-frp-public-endpoint into main
Reviewed-on: #10
Reviewed-by: slh <spenguin725@gmail.com>
2026-07-17 23:26:45 +08:00
1221bb5ead publish Gitea through the FRP endpoint 2026-07-17 15:24:46 +00:00

View File

@ -46,11 +46,12 @@ services:
GITEA__database__USER: gitea GITEA__database__USER: gitea
GITEA__database__PASSWD__FILE: /run/secrets/gitea_db_password GITEA__database__PASSWD__FILE: /run/secrets/gitea_db_password
GITEA__database__SSL_MODE: disable GITEA__database__SSL_MODE: disable
GITEA__server__DOMAIN: localhost GITEA__server__DOMAIN: gitea.xyslh.xyz
GITEA__server__ROOT_URL: http://localhost:13000/ GITEA__server__ROOT_URL: https://gitea.xyslh.xyz/
GITEA__server__SSH_DOMAIN: localhost GITEA__server__SSH_DOMAIN: gitea.xyslh.xyz
GITEA__server__SSH_PORT: 2223 GITEA__server__SSH_PORT: 2222
GITEA__service__REQUIRE_SIGNIN_VIEW: "true" GITEA__server__PROTOCOL: http
GITEA__service__REQUIRE_SIGNIN_VIEW: "false"
GITEA__service__DISABLE_REGISTRATION: "true" GITEA__service__DISABLE_REGISTRATION: "true"
GITEA__security__INSTALL_LOCK: "true" GITEA__security__INSTALL_LOCK: "true"
depends_on: depends_on:
@ -63,8 +64,8 @@ services:
- /etc/timezone:/etc/timezone:ro - /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
ports: ports:
- "127.0.0.1:13000:3000" - "13000:3000"
- "127.0.0.1:2223:22" - "2223:22"
healthcheck: healthcheck:
test: ["CMD-SHELL", "grep -Eq '^INSTALL_LOCK[[:space:]]*=[[:space:]]*true' /data/gitea/conf/app.ini && grep -Eq '^DB_TYPE[[:space:]]*=[[:space:]]*postgres' /data/gitea/conf/app.ini && wget -q --spider http://127.0.0.1:3000/api/healthz"] test: ["CMD-SHELL", "grep -Eq '^INSTALL_LOCK[[:space:]]*=[[:space:]]*true' /data/gitea/conf/app.ini && grep -Eq '^DB_TYPE[[:space:]]*=[[:space:]]*postgres' /data/gitea/conf/app.ini && wget -q --spider http://127.0.0.1:3000/api/healthz"]
interval: 5s interval: 5s