aboutsummaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2024-11-03 20:42:34 +0800
committercrupest <crupest@outlook.com>2024-11-03 20:43:08 +0800
commitacb7588cfe390576db6c1c8f648f6f837e89df9c (patch)
tree6719538d3e7c3483d89ad3c68ca319638ebd7ad3 /template
parent2f5a6d7d6d96cfc43a3f48734f797768f7af94b6 (diff)
downloadcrupest-acb7588cfe390576db6c1c8f648f6f837e89df9c.tar.gz
crupest-acb7588cfe390576db6c1c8f648f6f837e89df9c.tar.bz2
crupest-acb7588cfe390576db6c1c8f648f6f837e89df9c.zip
fix(forgejo): make generated config file as init.
Diffstat (limited to 'template')
-rw-r--r--template/docker-compose.yaml.template1
-rw-r--r--template/forgejo.app.ini.init.template (renamed from template/forgejo.app.ini.template)9
2 files changed, 3 insertions, 7 deletions
diff --git a/template/docker-compose.yaml.template b/template/docker-compose.yaml.template
index 18b9b32..48921bb 100644
--- a/template/docker-compose.yaml.template
+++ b/template/docker-compose.yaml.template
@@ -172,7 +172,6 @@ services:
- USER_UID=1000
- USER_GID=1000
volumes:
- - ./forgejo.app.ini:/data/gitea/conf/app.ini
- ./data/forgejo:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
diff --git a/template/forgejo.app.ini.template b/template/forgejo.app.ini.init.template
index 3bd44c4..7dc3800 100644
--- a/template/forgejo.app.ini.template
+++ b/template/forgejo.app.ini.init.template
@@ -1,3 +1,6 @@
+# Copy this file to ./data/forgejo/gitea/conf/app.ini
+# TODO: Copy this to data directory automatically.
+
APP_NAME = Forgejo, loved by crupest.
RUN_MODE = prod
WORK_PATH = /data/gitea
@@ -8,15 +11,12 @@ HTTP_PORT = 3000
ROOT_URL = https://git.${CRUPEST_DOMAIN}
DISABLE_SSH = true
LFS_START_SERVER = true
-LFS_JWT_SECRET_URI = file:/data/forgejo-secret/lfs_jwt_secret
[database]
DB_TYPE = sqlite3
[security]
INSTALL_LOCK = false
-SECRET_KEY_URI = file:/data/forgejo-secret/secret_key
-INTERNAL_TOKEN_URI = file:/data/forgejo-secret/internal_token
REVERSE_PROXY_LIMIT = 1
REVERSE_PROXY_TRUSTED_PROXIES = *
@@ -38,8 +38,5 @@ MODE = console,file
[cron]
ENABLED = true
-[oauth2]
-JWT_SECRET_URI = file:/data/forgejo-secret/oauth2_jwt_secret
-
[actions]
ENABLED = false