diff --git a/defaults/main.yml b/defaults/main.yml index 2a5557a..bc6bcdc 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -18,6 +18,7 @@ gitea_data_subdirs: - sock gitea_repository_data: '{{ gitea_data_dir }}/repositories' +gitea_max_repository_per_user: 200 gitea_server_protocol: unix gitea_http_addr: '{{ gitea_data_dir }}/sock/gitea.sock' diff --git a/templates/app.ini.j2 b/templates/app.ini.j2 index cc050a6..1770301 100644 --- a/templates/app.ini.j2 +++ b/templates/app.ini.j2 @@ -4,6 +4,8 @@ RUN_MODE= {{ gitea_run_mode }} [repository] ROOT = {{ gitea_repository_data }} +;; Global limit of repositories per user, applied at creation time. -1 means no limit +MAX_CREATION_LIMIT = {{ gitea_max_repository_per_user }} [server] PROTOCOL = {{ gitea_server_protocol }} @@ -27,6 +29,7 @@ NAME = {{ gitea_db_name }} USER = {{ gitea_db_user }} PASSWD = {{ gitea_db_pwd }} SSL_MODE = {{ gitea_db_ssl_mode }} +LOG_SQL = false [security] INSTALL_LOCK = {{ gitea_install_lock }} @@ -34,6 +37,10 @@ INSTALL_LOCK = {{ gitea_install_lock }} [service] DISABLE_REGISTRATION = {{ gitea_disable_registration }} NO_REPLY_ADDRESS = {{ gitea_mail_from }} +DEFAULT_KEEP_EMAIL_PRIVATE = true +DEFAULT_ALLOW_CREATE_ORGANIZATION = false +DEFAULT_ORG_VISIBILITY = public +DEFAULT_ORG_MEMBER_VISIBLE = false [service.explore] REQUIRE_SIGNIN_VIEW = {{ gitea_require_signin_view }}