mirror of
https://github.com/roles-ansible/ansible_role_gitea.git
synced 2024-08-16 11:39:50 +02:00
adds metrics endpoint config support
This commit is contained in:
parent
630d64dbb5
commit
c50f79cf4a
3 changed files with 12 additions and 0 deletions
|
@ -127,6 +127,11 @@ As this will only deploy config files, fail2ban already has to be installed or o
|
||||||
* `gitea_oauth2_enabled`: Enable the Oauth2 provider (true/false)
|
* `gitea_oauth2_enabled`: Enable the Oauth2 provider (true/false)
|
||||||
* `gitea_oauth2_jwt_secret`: JWT secret
|
* `gitea_oauth2_jwt_secret`: JWT secret
|
||||||
|
|
||||||
|
### Metrics endpoint configuration
|
||||||
|
|
||||||
|
* `gitea_metrics_enabled`: Enable the metrics endpoint
|
||||||
|
* `gitea_metrics_token`: Bearer token for the Prometheus scrape job
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
Don't hesitate to create a pull request, and when in doubt you can reach me on
|
Don't hesitate to create a pull request, and when in doubt you can reach me on
|
||||||
Twitter [@thomas_maurice](https://twitter.com/thomas_maurice).
|
Twitter [@thomas_maurice](https://twitter.com/thomas_maurice).
|
||||||
|
|
|
@ -61,3 +61,6 @@ gitea_fail2ban_jail_action: iptables-allports
|
||||||
|
|
||||||
gitea_oauth2_enabled: true
|
gitea_oauth2_enabled: true
|
||||||
gitea_oauth2_jwt_secret: ChangeMe
|
gitea_oauth2_jwt_secret: ChangeMe
|
||||||
|
|
||||||
|
gitea_metrics_enabled: false
|
||||||
|
gitea_metrics_token: ~
|
||||||
|
|
|
@ -181,3 +181,7 @@ REDIRECT_MACARON_LOG = false
|
||||||
ENABLE = {{ gitea_oauth2_enabled }}
|
ENABLE = {{ gitea_oauth2_enabled }}
|
||||||
JWT_SECRET = {{ gitea_oauth2_jwt_secret }}
|
JWT_SECRET = {{ gitea_oauth2_jwt_secret }}
|
||||||
|
|
||||||
|
[metrics]
|
||||||
|
ENABLED = {{ gitea_metrics_enabled }}
|
||||||
|
TOKEN = {{ gitea_metrics_token }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue