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

reorder metrics and oauth2 variables

This commit is contained in:
L3D 2021-03-22 00:17:13 +01:00
parent 889c3ac713
commit 7d8ff11f5e
Signed by: l3d
GPG key ID: CD08445BFF4313D1
2 changed files with 22 additions and 10 deletions

View file

@ -122,9 +122,19 @@ gitea_log_systemd: false
gitea_log_level: 'Warn'
gitea_log_extra_config: ''
# Metrics (metrics)
gitea_metrics_enabled: false
gitea_metrics_token: ''
# OAuth2 (oauth2)
gitea_oauth2_enabled: true
gitea_oauth2_jwt_secret: ''
gitea_oauth2_extra_config: ''
# security
gitea_lfs_jwt_secret: ''
gitea_oauth2_jwt_secret: ''
gitea_systemd_cap_net_bind_service: false
@ -135,10 +145,7 @@ gitea_fail2ban_jail_findtime: 3600
gitea_fail2ban_jail_bantime: 900
gitea_fail2ban_jail_action: iptables-allports
gitea_oauth2_enabled: true
gitea_metrics_enabled: false
gitea_metrics_token: ~
gitea_extra_config: ""

View file

@ -154,13 +154,18 @@ LEVEL = {{ gitea_log_level }}
{{ gitea_log_extra_config }}
;
;
;
[oauth2]
ENABLE = {{ gitea_oauth2_enabled }}
JWT_SECRET = {{ gitea_oauth2_jwt_secret }}
; -> https://docs.gitea.io/en-us/config-cheat-sheet/#metrics-metrics
[metrics]
ENABLED = {{ gitea_metrics_enabled }}
TOKEN = {{ gitea_metrics_token }}
;
;
; https://docs.gitea.io/en-us/config-cheat-sheet/#oauth2-oauth2
[oauth2]
ENABLE = {{ gitea_oauth2_enabled }}
JWT_SECRET = {{ gitea_oauth2_jwt_secret }}
{{ gitea_oauth2_extra_config }}
;
;
; Optional additional config
{{ gitea_extra_config }}