Lunny Xiao
1bfb0a24d8
Refactor routers directory ( #15800 )
...
* refactor routers directory
* move func used for web and api to common
* make corsHandler a function to prohibit side efects
* rm unused func
Co-authored-by: 6543 <6543@obermui.de>
2021-06-09 01:33:54 +02:00
Lunny Xiao
9ec5e6c40b
Move metrics from macaron to chi ( #13601 )
2020-11-17 15:50:06 -05:00
Tamal Saha
171b359877
Use gitea forked macaron ( #7933 )
...
Signed-off-by: Tamal Saha <tamal@appscode.com>
2019-08-23 12:40:29 -04:00
leonklingele
ef57fe4ae3
routers: do not leak secrets via timing side channel ( #7364 )
...
* routers: do not leak secrets via timing side channel
* routers/repo: do not leak secrets via timing side channel
2019-07-06 13:03:13 -04:00
Paul
8c865f3ce8
Fix metrics auth token detection ( #6006 )
...
Signed-off-by: Pauls Barkans <paulsb@gmail.com>
2019-02-09 00:58:31 -05:00
Stanislav
078c404c3b
Prometheus endpoint ( #5256 )
...
* Add prometheus collector and route
* dep ensure -add github.com/prometheus/client_golang/prometheus
* dep ensure -update github.com/golang/protobuf
* add metrics to reserved usernames
* add comment head in metrics package
* fix style imports
* add metrics settings
* add bearer token check
* mapping metrics configs
* fix lint
* update config cheat sheet
* update conf sample, typo fix
2018-11-04 22:20:00 -05:00