Templated registration config.
Self-registration can be turned off. Admin verification can be set. Guest users' read-only view can be configured.
This commit is contained in:
60
README.org
60
README.org
@@ -2,7 +2,7 @@
|
|||||||
#+AUTHOR: DeadSwitch | The Silent Architect
|
#+AUTHOR: DeadSwitch | The Silent Architect
|
||||||
#+OPTIONS: toc:nil num:nil \n:t
|
#+OPTIONS: toc:nil num:nil \n:t
|
||||||
|
|
||||||
[[https://opensource.org/licenses/MIT][https://img.shields.io/badge/license-MIT-blue.svg]] [[https://img.shields.io/badge/version-3.0.0-green.svg]]
|
[[https://opensource.org/licenses/MIT][https://img.shields.io/badge/license-MIT-blue.svg]] [[https://img.shields.io/badge/version-3.0.1-green.svg]]
|
||||||
|
|
||||||
* ds-gitea
|
* ds-gitea
|
||||||
|
|
||||||
@@ -38,7 +38,9 @@ gitea_http_port: 3000
|
|||||||
gitea_ssh_port: 22
|
gitea_ssh_port: 22
|
||||||
gitea_database_server: ''
|
gitea_database_server: ''
|
||||||
gitea_reverse_proxy: ''
|
gitea_reverse_proxy: ''
|
||||||
gitea_require_signin_view: false
|
gitea_require_signin_view: true
|
||||||
|
gitea_disable_registration: true
|
||||||
|
gitea_register_manual_confirm: false
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* Requirements
|
* Requirements
|
||||||
@@ -54,32 +56,34 @@ gitea_require_signin_view: false
|
|||||||
|
|
||||||
* Variables
|
* Variables
|
||||||
|
|
||||||
| Variable | Type | Comment |
|
| Variable | Type | Comment |
|
||||||
|----------------------------+---------+--------------------------------------------------|
|
|-------------------------------+---------+--------------------------------------------------|
|
||||||
| gitea_user | string | Gitea user |
|
| gitea_user | string | Gitea user |
|
||||||
| gitea_group | string | Gitea group |
|
| gitea_group | string | Gitea group |
|
||||||
| gitea_binary_url | string | Download URL of Gitea |
|
| gitea_binary_url | string | Download URL of Gitea |
|
||||||
| gitea_checksum_url | string | Checksum URL of the binary |
|
| gitea_checksum_url | string | Checksum URL of the binary |
|
||||||
| gitea_app_name | string | Gitea server title |
|
| gitea_app_name | string | Gitea server title |
|
||||||
| gitea_ssh_domain | string | SSH domain |
|
| gitea_ssh_domain | string | SSH domain |
|
||||||
| gitea_domain | string | Domain to reach Gitea |
|
| gitea_domain | string | Domain to reach Gitea |
|
||||||
| gitea_http_port | int | HTTP port |
|
| gitea_http_port | int | HTTP port |
|
||||||
| gitea_ssh_port | int | SSH port |
|
| gitea_ssh_port | int | SSH port |
|
||||||
| gitea_root_url | string | Protocol + FQDN + port |
|
| gitea_root_url | string | Protocol + FQDN + port |
|
||||||
| gitea_lfs_jwt_secret | string | LFS storage secret |
|
| gitea_lfs_jwt_secret | string | LFS storage secret |
|
||||||
| gitea_internal_token | string | Internal token |
|
| gitea_internal_token | string | Internal token |
|
||||||
| gitea_jwt_secret | string | JWT secret |
|
| gitea_jwt_secret | string | JWT secret |
|
||||||
| gitea_database_server | string | DB server - 'postgresql' or empty for sqlite |
|
| gitea_database_server | string | DB server - 'postgresql' or empty for sqlite |
|
||||||
| gitea_db_password | string | PosgreSQL db password (if pgsql is used) |
|
| 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_reverse_proxy | string | Reverse proxy to use or not set for no proxy |
|
||||||
| gitea_enable_https | boolean | Configure HTTPS in the proxy |
|
| gitea_enable_https | boolean | Configure HTTPS in the proxy |
|
||||||
| gitea_ssl_cert | string | SSL certificate |
|
| gitea_ssl_cert | string | SSL certificate |
|
||||||
| gitea_ssl_key | string | SSL key |
|
| gitea_ssl_key | string | SSL key |
|
||||||
| gitea_enable_http_redirect | boolean | Redirect HTTP to HTTPS |
|
| gitea_enable_http_redirect | boolean | Redirect HTTP to HTTPS |
|
||||||
| gitea_self_signed | boolean | Generate a self-signed cert and key |
|
| gitea_self_signed | boolean | Generate a self-signed cert and key |
|
||||||
| gitea_lets_encrypt | boolean | Use certbot to configure the SSL |
|
| gitea_lets_encrypt | boolean | Use certbot to configure the SSL |
|
||||||
| gitea_certbot_email | string | Email to register the certificates |
|
| gitea_certbot_email | string | Email to register the certificates |
|
||||||
| gitea_require_signin_view | boolean | If false, public repos are visible without login |
|
| gitea_require_signin_view | boolean | If false, public repos are visible without login |
|
||||||
|
| gitea_disable_registration | boolean | Turn off the user registration feature |
|
||||||
|
| gitea_register_manual_confirm | boolean | Registration requires admin verification |
|
||||||
|
|
||||||
* Handlers
|
* Handlers
|
||||||
|
|
||||||
|
|||||||
@@ -50,16 +50,15 @@ ENABLED = false
|
|||||||
[service]
|
[service]
|
||||||
REGISTER_EMAIL_CONFIRM = false
|
REGISTER_EMAIL_CONFIRM = false
|
||||||
ENABLE_NOTIFY_MAIL = false
|
ENABLE_NOTIFY_MAIL = false
|
||||||
DISABLE_REGISTRATION = false
|
DISABLE_REGISTRATION = {{ gitea_disable_registration }}
|
||||||
ALLOW_ONLY_EXTERNAL_REGISTRATION = false
|
ALLOW_ONLY_EXTERNAL_REGISTRATION = false
|
||||||
ENABLE_CAPTCHA = false
|
ENABLE_CAPTCHA = false
|
||||||
REQUIRE_SIGNIN_VIEW = false
|
REQUIRE_SIGNIN_VIEW = {{ gitea_require_signin_view }}
|
||||||
DEFAULT_KEEP_EMAIL_PRIVATE = false
|
DEFAULT_KEEP_EMAIL_PRIVATE = false
|
||||||
DEFAULT_ALLOW_CREATE_ORGANIZATION = true
|
DEFAULT_ALLOW_CREATE_ORGANIZATION = true
|
||||||
DEFAULT_ENABLE_TIMETRACKING = true
|
DEFAULT_ENABLE_TIMETRACKING = true
|
||||||
NO_REPLY_ADDRESS = noreply.localhost
|
NO_REPLY_ADDRESS = noreply.localhost
|
||||||
REGISTER_MANUAL_CONFIRM = true
|
REGISTER_MANUAL_CONFIRM = {{ gitea_register_manual_confirm }}
|
||||||
REQUIRE_SIGNIN_VIEW = {{ gitea_require_signin_view }}
|
|
||||||
|
|
||||||
[openid]
|
[openid]
|
||||||
ENABLE_OPENID_SIGNIN = false
|
ENABLE_OPENID_SIGNIN = false
|
||||||
|
|||||||
Reference in New Issue
Block a user