chore: update Gitea configuration and migration script for production

Signed-off-by: zhenyus <zhenyus@mathmast.com>
This commit is contained in:
zhenyus 2025-03-27 14:36:24 +08:00
parent 17c9a1b16f
commit 5b8429d883
4 changed files with 8 additions and 11 deletions

View File

@ -463,7 +463,7 @@ gitea:
admin: admin:
# existingSecret: gitea-admin-secret # existingSecret: gitea-admin-secret
existingSecret: existingSecret:
username: freeleaps username: freeleaps-admin
password: r8sA8CPHD9!bt6d password: r8sA8CPHD9!bt6d
email: "helpdesk@freeleaps.com" email: "helpdesk@freeleaps.com"
passwordMode: keepUpdated passwordMode: keepUpdated

View File

@ -68,11 +68,11 @@ devsvc:
serviceApiAccessPort: 8007 serviceApiAccessPort: 8007
mongodbName: freeleaps2 mongodbName: freeleaps2
mongodbUri: mongodb+srv://freeadmin:0eMV0bt8oyaknA0m@freeleaps2.zmsmpos.mongodb.net/?retryWrites=true&w=majority mongodbUri: mongodb+srv://freeadmin:0eMV0bt8oyaknA0m@freeleaps2.zmsmpos.mongodb.net/?retryWrites=true&w=majority
giteaToken: 232d9d20128e894a96fbc6f62b3ff54fdadef776 giteaToken: 87f8cf4bf9e6b7beb422967e079fadbdfb70e0be
giteaUrl: https://freeleaps.com:3443 giteaUrl: http://freeleaps-prod-gitea-http.freeleaps-prod.svc.freeleaps.cluster:3000
giteaDepotOrganization: products giteaDepotOrganization: products
codeDepotHttpPort: 3443 codeDepotHttpPort: 443
codeDepotSshPort: 22 codeDepotSshPort: 22
codeDepotDomainName: freeleaps.com codeDepotDomainName: gitea.freeleaps.mathmast.com
metricsEnabled: "true" metricsEnabled: "true"
probesEnabled: "true" probesEnabled: "true"

View File

@ -1,6 +1,6 @@
LOAD DATABASE LOAD DATABASE
FROM '/tmp/gitea-alpha.db' FROM '/home/yaid/projects/groovy/freeleaps.com/freeleaps-ops/gitea.db'
INTO postgresql://gitea:r8sA8CPHD9!bt6d@localhost:5432/gitea INTO postgresql://postgres:X9H2*9M2ZWYmuZ@localhost:5432/gitea
WITH data only, WITH data only,
include no drop, include no drop,
@ -9,4 +9,4 @@ WITH data only,
no truncate, no truncate,
batch rows = 1 batch rows = 1
excluding table names like 'app_state','oauth2_application','oauth2_authorization_code','oauth2_grant','system_setting','version'; excluding table names like 'app_state','oauth2_application','oauth2_authorization_code','oauth2_grant','system_setting','version','notice';

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:383c0f2fdb4303ce4d6160cd910c193515ac86d261e8732aa2798e6a878047fd
size 547621