From 6fa402a0297be9cefe7df2e6453e34901347b0cb Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Thu, 23 Nov 2023 14:13:20 -0800 Subject: [PATCH] Init Gitea README --- homelab/druid/config/gitea/README.md | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 homelab/druid/config/gitea/README.md diff --git a/homelab/druid/config/gitea/README.md b/homelab/druid/config/gitea/README.md new file mode 100644 index 00000000..aca88fa3 --- /dev/null +++ b/homelab/druid/config/gitea/README.md @@ -0,0 +1,29 @@ +# `app.ini` Snippets +The main Gitea config file is located at `~/data/gitea/gitea/gitea/conf/app.ini`. + +Configure connection to postgres DB container. +``` +[database] +PATH = /data/gitea/gitea.db +DB_TYPE = postgres +HOST = postgres:5432 +NAME = gitea +USER = gitea +PASSWD = [Located at postgres_secrets.env] +LOG_SQL = false +SCHEMA = +SSL_MODE = disable +``` + +Disable OpenID as login option. +``` +[openid] +ENABLE_OPENID_SIGNIN = false +ENABLE_OPENID_SIGNUP = false +``` + +Allow migrating from specific domains. +``` +[migrations] +ALLOWED_DOMAINS = gitlab.jafner.net, *.github.com, github.com +``` \ No newline at end of file