From 14d463a8821518005dc523a23313229625d78d82 Mon Sep 17 00:00:00 2001 From: DeadSwitch Date: Wed, 11 Feb 2026 21:41:48 +0100 Subject: [PATCH] Added unregistered view. --- README.org | 52 +++++++++++++++++++++++--------------------- defaults/main.yml | 1 + templates/app.ini.j2 | 1 + 3 files changed, 29 insertions(+), 25 deletions(-) diff --git a/README.org b/README.org index 527b429..2cb76b4 100644 --- a/README.org +++ b/README.org @@ -38,6 +38,7 @@ gitea_http_port: 3000 gitea_ssh_port: 22 gitea_database_server: '' gitea_reverse_proxy: '' +gitea_require_signin_view: false #+end_src * Requirements @@ -53,31 +54,32 @@ gitea_reverse_proxy: '' * Variables -| Variable | Type | Comment | -|----------------------------+---------+----------------------------------------------| -| gitea_user | string | Gitea user | -| gitea_group | string | Gitea group | -| gitea_binary_url | string | Download URL of Gitea | -| gitea_checksum_url | string | Checksum URL of the binary | -| gitea_app_name | string | Gitea server title | -| gitea_ssh_domain | string | SSH domain | -| gitea_domain | string | Domain to reach Gitea | -| gitea_http_port | int | HTTP port | -| gitea_ssh_port | int | SSH port | -| gitea_root_url | string | Protocol + FQDN + port | -| gitea_lfs_jwt_secret | string | LFS storage secret | -| gitea_internal_token | string | Internal token | -| gitea_jwt_secret | string | JWT secret | -| gitea_database_server | string | DB server - 'postgresql' or empty for sqlite | -| gitea_db_password | string | PosgreSQL db password (if pgsql is used) | -| gitea_reverse_proxy | string | Reverse proxy to use or not set for no proxy | -| gitea_enable_https | boolean | Configure HTTPS in the proxy | -| gitea_ssl_cert | string | SSL certificate | -| gitea_ssl_key | string | SSL key | -| gitea_enable_http_redirect | boolean | Redirect HTTP to HTTPS | -| gitea_self_signed | boolean | Generate a self-signed cert and key | -| gitea_lets_encrypt | boolean | Use certbot to configure the SSL | -| gitea_certbot_email | string | Email to register the certificates | +| Variable | Type | Comment | +|----------------------------+---------+--------------------------------------------------| +| gitea_user | string | Gitea user | +| gitea_group | string | Gitea group | +| gitea_binary_url | string | Download URL of Gitea | +| gitea_checksum_url | string | Checksum URL of the binary | +| gitea_app_name | string | Gitea server title | +| gitea_ssh_domain | string | SSH domain | +| gitea_domain | string | Domain to reach Gitea | +| gitea_http_port | int | HTTP port | +| gitea_ssh_port | int | SSH port | +| gitea_root_url | string | Protocol + FQDN + port | +| gitea_lfs_jwt_secret | string | LFS storage secret | +| gitea_internal_token | string | Internal token | +| gitea_jwt_secret | string | JWT secret | +| gitea_database_server | string | DB server - 'postgresql' or empty for sqlite | +| gitea_db_password | string | PosgreSQL db password (if pgsql is used) | +| gitea_reverse_proxy | string | Reverse proxy to use or not set for no proxy | +| gitea_enable_https | boolean | Configure HTTPS in the proxy | +| gitea_ssl_cert | string | SSL certificate | +| gitea_ssl_key | string | SSL key | +| gitea_enable_http_redirect | boolean | Redirect HTTP to HTTPS | +| gitea_self_signed | boolean | Generate a self-signed cert and key | +| gitea_lets_encrypt | boolean | Use certbot to configure the SSL | +| gitea_certbot_email | string | Email to register the certificates | +| gitea_require_signin_view | boolean | If false, public repos are visible without login | * Handlers diff --git a/defaults/main.yml b/defaults/main.yml index 8be5b5e..8a4c336 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -3,3 +3,4 @@ gitea_user: git gitea_group: git gitea_http_port: 3000 gitea_ssh_port: 22 +gitea_require_signin_view: true diff --git a/templates/app.ini.j2 b/templates/app.ini.j2 index e997296..bc92a26 100644 --- a/templates/app.ini.j2 +++ b/templates/app.ini.j2 @@ -59,6 +59,7 @@ DEFAULT_ALLOW_CREATE_ORGANIZATION = true DEFAULT_ENABLE_TIMETRACKING = true NO_REPLY_ADDRESS = noreply.localhost REGISTER_MANUAL_CONFIRM = true +REQUIRE_SIGNIN_VIEW = {{ gitea_require_signin_view }} [openid] ENABLE_OPENID_SIGNIN = false