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>
4 years ago
Lunny Xiao
9ec5e6c40b
Move metrics from macaron to chi ( #13601 )
4 years ago
Tamal Saha
171b359877
Use gitea forked macaron ( #7933 )
...
Signed-off-by: Tamal Saha <tamal@appscode.com>
5 years ago
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
6 years ago
Paul
8c865f3ce8
Fix metrics auth token detection ( #6006 )
...
Signed-off-by: Pauls Barkans <paulsb@gmail.com>
6 years ago
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
6 years ago