Improve gitea setup quality

This commit is contained in:
Matej Bačo committed 2026-07-23 16:34:43 +02:00
1 parent 732c4cc1ab
commit 956adbf4f9
2 files changed
+4 -6

No files matched your search

+1
View File
@@ -160,6 +160,7 @@ _APP_VCS_GITEA_BROWSER_ENDPOINT=http://localhost:9515
_APP_VCS_GITEA_CLIENT_ID=
_APP_VCS_GITEA_CLIENT_SECRET=
_APP_VCS_GITEA_WEBHOOK_SECRET=gitea-webhook-secret
_APP_VCS_WEBHOOK_URL=http://appwrite/v1
_APP_VCS_GITLAB_CLIENT_ID=
_APP_VCS_GITLAB_CLIENT_SECRET=
_APP_VCS_GITLAB_WEBHOOK_SECRET=
+3 -6
View File
@@ -19,7 +19,6 @@ services:
- ./public:/usr/src/code/public
- ./src:/usr/src/code/src
- ./dev:/usr/src/code/dev
- appwrite-gitea:/gitea-data:ro
depends_on:
coredns:
condition: service_started
@@ -357,6 +356,8 @@ services:
- USER_GID=1000
- GITEA__database__DB_TYPE=sqlite3
- GITEA__security__INSTALL_LOCK=true
- GITEA__service__DISABLE_REGISTRATION=false
- GITEA__repository__DEFAULT_BRANCH=main
- GITEA__webhook__ALLOWED_HOST_LIST=*
- GITEA__webhook__SKIP_TLS_VERIFY=true
- GITEA__webhook__DELIVER_TIMEOUT=10
@@ -391,11 +392,7 @@ services:
entrypoint: /bin/sh
command: >
-c "
su git -c \"gitea admin user create --username $$GITEA_ADMIN_USERNAME --password $$GITEA_ADMIN_PASSWORD --email $$GITEA_ADMIN_EMAIL --admin --must-change-password=false\" || true &&
if [ ! -f /data/gitea/token.txt ]; then
TOKEN=$$(su git -c \"gitea admin user generate-access-token --username $$GITEA_ADMIN_USERNAME --token-name $$GITEA_ADMIN_USERNAME-token --scopes all --raw\") &&
echo $$TOKEN > /data/gitea/token.txt;
fi
su git -c \"gitea admin user create --username $$GITEA_ADMIN_USERNAME --password $$GITEA_ADMIN_PASSWORD --email $$GITEA_ADMIN_EMAIL --admin --must-change-password=false\" || true
"
appwrite-mongo-express:
profiles: