forked from ISTI-ansible-roles/ansible-roles
Fixes to the gitea role and configuration template.
This commit is contained in:
parent
6b5613146f
commit
49defcf825
|
@ -21,12 +21,15 @@ gitea_repository_data: '{{ gitea_data_dir }}/repositories'
|
||||||
|
|
||||||
gitea_server_protocol: unix
|
gitea_server_protocol: unix
|
||||||
gitea_http_addr: '{{ gitea_data_dir }}/sock/gitea.sock'
|
gitea_http_addr: '{{ gitea_data_dir }}/sock/gitea.sock'
|
||||||
|
gitea_http_port: 3000
|
||||||
|
gitea_root_url: https://{{ ansible_fqdn }}
|
||||||
|
|
||||||
# home, explore
|
# home, explore
|
||||||
gitea_landing_page: home
|
gitea_landing_page: explore
|
||||||
gitea_user: gitea
|
gitea_user: gitea
|
||||||
gitea_group: '{{ gitea_user }}'
|
gitea_group: '{{ gitea_user }}'
|
||||||
gitea_run_mode: prod
|
gitea_run_mode: prod
|
||||||
gitea_db: postgresql
|
gitea_db: postgres
|
||||||
gitea_local_postgresql: True
|
gitea_local_postgresql: True
|
||||||
gitea_local_mysql: False
|
gitea_local_mysql: False
|
||||||
gitea_local_mariadb: False
|
gitea_local_mariadb: False
|
||||||
|
@ -47,9 +50,8 @@ gitea_db_user: gitea_u
|
||||||
#gitea_db_pwd: put it into a vault file
|
#gitea_db_pwd: put it into a vault file
|
||||||
gitea_db_host: localhost
|
gitea_db_host: localhost
|
||||||
gitea_db_port: 5432
|
gitea_db_port: 5432
|
||||||
gitea_db_ssl_mode: 'enable'
|
gitea_db_ssl_mode: 'disable'
|
||||||
|
|
||||||
gitea_ldap_auth: False
|
|
||||||
gitea_app_name: "Gitea"
|
gitea_app_name: "Gitea"
|
||||||
gitea_disable_registration: 'false'
|
gitea_disable_registration: 'false'
|
||||||
gitea_install_lock: 'false'
|
gitea_install_lock: 'false'
|
||||||
|
@ -57,12 +59,13 @@ gitea_mailer_enabled: False
|
||||||
gitea_mail_from: gitea@localhost
|
gitea_mail_from: gitea@localhost
|
||||||
gitea_mailer_type: sendmail
|
gitea_mailer_type: sendmail
|
||||||
gitea_sendmail_path: /usr/sbin/sendmail
|
gitea_sendmail_path: /usr/sbin/sendmail
|
||||||
gitea_cache_provider: redis
|
gitea_cache_provider: memcache
|
||||||
#gitea_cache_host: '127.0.0.1:11211'
|
#gitea_cache_host: '127.0.0.1:11211'
|
||||||
gitea_cache_host: 'network=tcp,addr=127.0.0.1:6379,password=macaron,db=0,pool_size=100,idle_timeout=180'
|
gitea_cache_host: '127.0.0.1:11211'
|
||||||
gitea_session_provider: memcache
|
gitea_session_provider: redis
|
||||||
gitea_session_config: '127.0.0.1:11211'
|
gitea_session_config: 'network=tcp,addr=127.0.0.1:6379,db=0,pool_size=100,idle_timeout=180'
|
||||||
|
|
||||||
gitea_prometheus_metrics: False
|
gitea_prometheus_metrics: False
|
||||||
#gitea_prometheus_bearer_token: put it into a vault file
|
#gitea_prometheus_bearer_token: put it into a vault file
|
||||||
gitea_prometheus_bearer_token: ''
|
gitea_prometheus_bearer_token: ''
|
||||||
|
gitea_log_level: Info
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
[default]
|
|
||||||
APP_NAME = {{ gitea_app_name }}
|
APP_NAME = {{ gitea_app_name }}
|
||||||
RUN_USER = {{ gitea_user }}
|
RUN_USER = {{ gitea_user }}
|
||||||
RUN_MODE= {{ gitea_run_mode }}
|
RUN_MODE= {{ gitea_run_mode }}
|
||||||
|
@ -12,8 +11,14 @@ HTTP_ADDR = {{ gitea_http_addr }}
|
||||||
LANDING_PAGE = {{ gitea_landing_page }}
|
LANDING_PAGE = {{ gitea_landing_page }}
|
||||||
LFS_START_SERVER = {{ gitea_start_lfs }}
|
LFS_START_SERVER = {{ gitea_start_lfs }}
|
||||||
LFS_CONTENT_PATH = {{ gitea_lfs_content_path }}
|
LFS_CONTENT_PATH = {{ gitea_lfs_content_path }}
|
||||||
LFS_JWT_SECRET = {{ gitea_lfs_jwt_secret }}
|
|
||||||
LFS_HTTP_AUTH_EXPIRY = {{ gitea_lfs_http_auth_expiry }}
|
LFS_HTTP_AUTH_EXPIRY = {{ gitea_lfs_http_auth_expiry }}
|
||||||
|
SSH_DOMAIN = localhost
|
||||||
|
DOMAIN = localhost
|
||||||
|
HTTP_PORT = {{ gitea_http_port }}
|
||||||
|
ROOT_URL = {{ gitea_root_url }}
|
||||||
|
DISABLE_SSH = false
|
||||||
|
SSH_PORT = 22
|
||||||
|
OFFLINE_MODE = false
|
||||||
|
|
||||||
[database]
|
[database]
|
||||||
DB_TYPE = {{ gitea_db }}
|
DB_TYPE = {{ gitea_db }}
|
||||||
|
@ -28,6 +33,7 @@ INSTALL_LOCK = {{ gitea_install_lock }}
|
||||||
|
|
||||||
[service]
|
[service]
|
||||||
DISABLE_REGISTRATION = {{ gitea_disable_registration }}
|
DISABLE_REGISTRATION = {{ gitea_disable_registration }}
|
||||||
|
NO_REPLY_ADDRESS = {{ gitea_mail_from }}
|
||||||
|
|
||||||
{% if gitea_mailer_enabled %}
|
{% if gitea_mailer_enabled %}
|
||||||
[mailer]
|
[mailer]
|
||||||
|
@ -55,3 +61,5 @@ TOKEN = '{{ gitea_prometheus_bearer_token }}'
|
||||||
SHOW_FOOTER_VERSION = false
|
SHOW_FOOTER_VERSION = false
|
||||||
SHOW_FOOTER_TEMPLATE_LOAD_TIME = false
|
SHOW_FOOTER_TEMPLATE_LOAD_TIME = false
|
||||||
|
|
||||||
|
[log]
|
||||||
|
LEVEL = {{ gitea_log_level }}
|
Loading…
Reference in New Issue