flynnnnnnnnnn
e81ccc406b
Implement FSFE REUSE for golang files ( #21840 )
...
Change all license headers to comply with REUSE specification.
Fix #16132
Co-authored-by: flynnnnnnnnnn <flynnnnnnnnnn@github>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
2 years ago
KN4CK3R
3f280f89e7
Update HTTP status codes to modern codes ( #18063 )
...
* 2xx/3xx/4xx/5xx -> http.Status...
* http.StatusFound -> http.StatusTemporaryRedirect
* http.StatusMovedPermanently -> http.StatusPermanentRedirect
3 years ago
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
5 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