aboutsummaryrefslogtreecommitdiff
path: root/template/forgejo.app.ini.init.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/forgejo.app.ini.init.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/forgejo.app.ini.init.template')
-rw-r--r--template/forgejo.app.ini.init.template42
1 files changed, 42 insertions, 0 deletions
diff --git a/template/forgejo.app.ini.init.template b/template/forgejo.app.ini.init.template
new file mode 100644
index 0000000..7dc3800
--- /dev/null
+++ b/template/forgejo.app.ini.init.template
@@ -0,0 +1,42 @@
+# 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
+
+[server]
+HTTP_ADDR = 0.0.0.0
+HTTP_PORT = 3000
+ROOT_URL = https://git.${CRUPEST_DOMAIN}
+DISABLE_SSH = true
+LFS_START_SERVER = true
+
+[database]
+DB_TYPE = sqlite3
+
+[security]
+INSTALL_LOCK = false
+REVERSE_PROXY_LIMIT = 1
+REVERSE_PROXY_TRUSTED_PROXIES = *
+
+[service]
+DISABLE_REGISTRATION = false
+ALLOW_ONLY_INTERNAL_REGISTRATION = true
+
+[mailer]
+ENABLED = true
+PROTOCOL = smtp
+SMTP_ADDR = mail.${CRUPEST_DOMAIN}
+SMTP_PORT = 465
+USER = ${CRUPEST_FORGEJO_MAILER_USER}
+PASSWD = ${CRUPEST_FORGEJO_MAILER_PASSWD}
+
+[log]
+MODE = console,file
+
+[cron]
+ENABLED = true
+
+[actions]
+ENABLED = false