2019-03-29 14:59:19 +01:00
|
|
|
---
|
|
|
|
#
|
|
|
|
# https://gitea.io
|
|
|
|
#
|
|
|
|
# We use the server ssh daemon, and nginx in front of the service by default.
|
|
|
|
# So we do not start in http mode and we do not use the embedded letsencrypt support
|
|
|
|
#
|
|
|
|
gitea_version: 1.8
|
|
|
|
gitea_download_url: 'https://dl.gitea.io/gitea/{{ gitea_version }}/gitea-{{ gitea_version }}-linux-amd64'
|
|
|
|
gitea_bin_path: /usr/local/bin/gitea
|
|
|
|
|
|
|
|
gitea_conf_dir: /etc/gitea
|
|
|
|
gitea_data_dir: /var/lib/gitea
|
|
|
|
gitea_data_subdirs:
|
|
|
|
- custom
|
|
|
|
- data
|
|
|
|
- log
|
|
|
|
- sock
|
|
|
|
|
|
|
|
gitea_repository_data: '{{ gitea_data_dir }}/repositories'
|
|
|
|
|
|
|
|
gitea_server_protocol: unix
|
|
|
|
gitea_http_addr: '{{ gitea_data_dir }}/sock/gitea.sock'
|
2019-03-29 19:45:22 +01:00
|
|
|
gitea_http_port: 3000
|
|
|
|
gitea_root_url: https://{{ ansible_fqdn }}
|
|
|
|
|
2019-03-29 14:59:19 +01:00
|
|
|
# home, explore
|
2019-03-29 19:45:22 +01:00
|
|
|
gitea_landing_page: explore
|
2019-03-29 14:59:19 +01:00
|
|
|
gitea_user: gitea
|
|
|
|
gitea_group: '{{ gitea_user }}'
|
|
|
|
gitea_run_mode: prod
|
2019-03-29 19:45:22 +01:00
|
|
|
gitea_db: postgres
|
2019-03-29 14:59:19 +01:00
|
|
|
gitea_local_postgresql: True
|
|
|
|
gitea_local_mysql: False
|
|
|
|
gitea_local_mariadb: False
|
|
|
|
gitea_nginx_frontend: True
|
|
|
|
gitea_local_redis: True
|
|
|
|
gitea_local_memcache: True
|
|
|
|
|
|
|
|
gitea_start_lfs: 'true'
|
|
|
|
gitea_lfs_content_path: '{{ gitea_data_dir }}/data/lfs'
|
|
|
|
#gitea_lfs_jwt_secret: put it into a vault file
|
|
|
|
gitea_lfs_http_auth_expiry: 20m
|
|
|
|
|
|
|
|
gitea_required_packages:
|
|
|
|
- git
|
|
|
|
|
|
|
|
gitea_db_name: gitea
|
|
|
|
gitea_db_user: gitea_u
|
|
|
|
#gitea_db_pwd: put it into a vault file
|
|
|
|
gitea_db_host: localhost
|
|
|
|
gitea_db_port: 5432
|
2019-03-29 19:45:22 +01:00
|
|
|
gitea_db_ssl_mode: 'disable'
|
2019-03-29 14:59:19 +01:00
|
|
|
|
|
|
|
gitea_app_name: "Gitea"
|
|
|
|
gitea_disable_registration: 'false'
|
|
|
|
gitea_install_lock: 'false'
|
|
|
|
gitea_mailer_enabled: False
|
|
|
|
gitea_mail_from: gitea@localhost
|
|
|
|
gitea_mailer_type: sendmail
|
|
|
|
gitea_sendmail_path: /usr/sbin/sendmail
|
2019-03-29 19:45:22 +01:00
|
|
|
gitea_cache_provider: memcache
|
2019-03-29 14:59:19 +01:00
|
|
|
#gitea_cache_host: '127.0.0.1:11211'
|
2019-03-29 19:45:22 +01:00
|
|
|
gitea_cache_host: '127.0.0.1:11211'
|
|
|
|
gitea_session_provider: redis
|
|
|
|
gitea_session_config: 'network=tcp,addr=127.0.0.1:6379,db=0,pool_size=100,idle_timeout=180'
|
2019-03-29 14:59:19 +01:00
|
|
|
|
|
|
|
gitea_prometheus_metrics: False
|
|
|
|
#gitea_prometheus_bearer_token: put it into a vault file
|
2019-03-29 19:45:22 +01:00
|
|
|
gitea_prometheus_bearer_token: ''
|
|
|
|
gitea_log_level: Info
|