1
1
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_gitea.git synced 2024-08-16 11:39:50 +02:00

chore(syntax): Reformat the configuration file.

This commit is contained in:
Benoit Garcia 2023-05-09 14:45:07 +02:00
parent 83cfd8d82e
commit c9c2f66c5c
No known key found for this signature in database
GPG key ID: 4BBC486E1538C7A0

View file

@ -13,17 +13,17 @@ RUN_MODE = {{ gitea_run_mode }}
; ;
; -> https://docs.gitea.io/en-us/config-cheat-sheet/#repository-repository ; -> https://docs.gitea.io/en-us/config-cheat-sheet/#repository-repository
[repository] [repository]
DEFAULT_BRANCH = {{ gitea_default_branch }}
DEFAULT_PRIVATE = {{ gitea_default_private }}
DEFAULT_REPO_UNITS = {{ gitea_default_repo_units }}
DISABLED_REPO_UNITS = {{ gitea_disabled_repo_units }}
DISABLE_HTTP_GIT = {{ gitea_disable_http_git | ternary('true', 'false') }}
DISABLE_STARS = {{ gitea_disable_stars | ternary('true', 'false') }}
ENABLE_PUSH_CREATE_ORG = {{ gitea_enable_push_create_org | ternary('true', 'false') }}
ENABLE_PUSH_CREATE_USER = {{ gitea_enable_push_create_user | ternary('true', 'false') }}
FORCE_PRIVATE = {{ gitea_force_private | ternary('true', 'false') }}
MAX_CREATION_LIMIT = {{ gitea_user_repo_limit }}
ROOT = {{ gitea_repository_root }} ROOT = {{ gitea_repository_root }}
FORCE_PRIVATE = {{ gitea_force_private | ternary('true', 'false') }}
DEFAULT_PRIVATE = {{ gitea_default_private }}
MAX_CREATION_LIMIT = {{ gitea_user_repo_limit }}
DISABLE_HTTP_GIT = {{ gitea_disable_http_git | ternary('true', 'false') }}
ENABLE_PUSH_CREATE_USER = {{ gitea_enable_push_create_user | ternary('true', 'false') }}
ENABLE_PUSH_CREATE_ORG = {{ gitea_enable_push_create_org | ternary('true', 'false') }}
DISABLED_REPO_UNITS = {{ gitea_disabled_repo_units }}
DEFAULT_REPO_UNITS = {{ gitea_default_repo_units }}
DISABLE_STARS = {{ gitea_disable_stars | ternary('true', 'false') }}
DEFAULT_BRANCH = {{ gitea_default_branch }}
{{ gitea_repository_extra_config }} {{ gitea_repository_extra_config }}
; ;
; ;
@ -66,9 +66,9 @@ X_FRAME_OPTIONS = {{ gitea_cors_x_frame_options }}
; ;
; -> https://docs.gitea.io/en-us/config-cheat-sheet/#ui-ui ; -> https://docs.gitea.io/en-us/config-cheat-sheet/#ui-ui
[ui] [ui]
SHOW_USER_EMAIL = {{ gitea_show_user_email | ternary('true', 'false') }}
DEFAULT_THEME = {{ gitea_theme_default }}
THEMES = {{ gitea_themes }} THEMES = {{ gitea_themes }}
DEFAULT_THEME = {{ gitea_theme_default }}
SHOW_USER_EMAIL = {{ gitea_show_user_email | ternary('true', 'false') }}
{{ gitea_ui_extra_config }} {{ gitea_ui_extra_config }}
; ;
; ;
@ -82,6 +82,7 @@ KEYWORDS = {{ gitea_ui_keywords }}
; ;
; -> https://docs.gitea.io/en-us/config-cheat-sheet/#server-server ; -> https://docs.gitea.io/en-us/config-cheat-sheet/#server-server
[server] [server]
APP_DATA_PATH = {{ gitea_home }}/data
PROTOCOL = {{ gitea_protocol }} PROTOCOL = {{ gitea_protocol }}
DOMAIN = {{ gitea_http_domain }} DOMAIN = {{ gitea_http_domain }}
ROOT_URL = {{ gitea_root_url }} ROOT_URL = {{ gitea_root_url }}
@ -92,7 +93,10 @@ SSH_DOMAIN = {{ gitea_ssh_domain }}
SSH_PORT = {{ gitea_ssh_port }} SSH_PORT = {{ gitea_ssh_port }}
SSH_LISTEN_HOST = {{ gitea_ssh_listen }} SSH_LISTEN_HOST = {{ gitea_ssh_listen }}
OFFLINE_MODE = {{ gitea_offline_mode | ternary('true', 'false') }} OFFLINE_MODE = {{ gitea_offline_mode | ternary('true', 'false') }}
APP_DATA_PATH = {{ gitea_home }}/data {% if gitea_enable_tls_certs | bool %}
CERT_FILE = {{ gitea_tls_cert_file }}
KEY_FILE = {{ gitea_tls_key_file }}
{% endif %}
LANDING_PAGE = {{ gitea_landing_page }} LANDING_PAGE = {{ gitea_landing_page }}
{% if gitea_lfs_server_enabled | bool -%} {% if gitea_lfs_server_enabled | bool -%}
LFS_START_SERVER = true LFS_START_SERVER = true
@ -100,10 +104,6 @@ LFS_JWT_SECRET = {{ gitea_lfs_jwt_secret }}
{% endif %} {% endif %}
REDIRECT_OTHER_PORT = {{ gitea_redirect_other_port | ternary('true', 'false') }} REDIRECT_OTHER_PORT = {{ gitea_redirect_other_port | ternary('true', 'false') }}
PORT_TO_REDIRECT = {{ gitea_port_to_redirect }} PORT_TO_REDIRECT = {{ gitea_port_to_redirect }}
{% if gitea_enable_tls_certs | bool %}
CERT_FILE = {{ gitea_tls_cert_file }}
KEY_FILE = {{ gitea_tls_key_file }}
{% endif %}
ENABLE_ACME = {{ gitea_enable_acme | ternary('true', 'false') }} ENABLE_ACME = {{ gitea_enable_acme | ternary('true', 'false') }}
{% if gitea_enable_acme | bool %} {% if gitea_enable_acme | bool %}
{% if gitea_acme_url != '' %} {% if gitea_acme_url != '' %}
@ -162,15 +162,15 @@ PASSWORD_CHECK_PWN = {{ gitea_password_check_pwn | ternary('true', 'false') }}
; ;
; -> https://docs.gitea.io/en-us/config-cheat-sheet/#service-service ; -> https://docs.gitea.io/en-us/config-cheat-sheet/#service-service
[service] [service]
DISABLE_REGISTRATION = {{ gitea_disable_registration | ternary('true', 'false') }}
REGISTER_EMAIL_CONFIRM = {{ gitea_register_email_confirm | ternary('true', 'false') }} REGISTER_EMAIL_CONFIRM = {{ gitea_register_email_confirm | ternary('true', 'false') }}
DISABLE_REGISTRATION = {{ gitea_disable_registration | ternary('true', 'false') }}
REQUIRE_SIGNIN_VIEW = {{ gitea_require_signin | ternary('true', 'false') }} REQUIRE_SIGNIN_VIEW = {{ gitea_require_signin | ternary('true', 'false') }}
DEFAULT_KEEP_EMAIL_PRIVATE = {{ gitea_default_keep_mail_private | ternary('true', 'false') }}
ENABLE_CAPTCHA = {{ gitea_enable_captcha | ternary('true', 'false') }}
SHOW_REGISTRATION_BUTTON = {{ gitea_show_registration_button | ternary('true', 'false') }}
ALLOW_ONLY_EXTERNAL_REGISTRATION = {{ gitea_only_allow_external_registration | ternary('true', 'false') }}
ENABLE_NOTIFY_MAIL = {{ gitea_enable_notify_mail | ternary('true', 'false') }} ENABLE_NOTIFY_MAIL = {{ gitea_enable_notify_mail | ternary('true', 'false') }}
ENABLE_CAPTCHA = {{ gitea_enable_captcha | ternary('true', 'false') }}
DEFAULT_KEEP_EMAIL_PRIVATE = {{ gitea_default_keep_mail_private | ternary('true', 'false') }}
SHOW_REGISTRATION_BUTTON = {{ gitea_show_registration_button | ternary('true', 'false') }}
AUTO_WATCH_NEW_REPOS = {{ gitea_auto_watch_new_repos | ternary('true', 'false') }} AUTO_WATCH_NEW_REPOS = {{ gitea_auto_watch_new_repos | ternary('true', 'false') }}
ALLOW_ONLY_EXTERNAL_REGISTRATION = {{ gitea_only_allow_external_registration | ternary('true', 'false') }}
{{ gitea_service_extra_config }} {{ gitea_service_extra_config }}
; ;
; ;