Compare commits
2 Commits
v2024.9.25
...
v2024.9.26
Author | SHA1 | Date | |
---|---|---|---|
169578c25d | |||
b0a71fc599 |
@ -1,4 +1,4 @@
|
|||||||
FROM reg.cadoles.com/proxy_cache/library/golang:1.22 AS BUILD
|
FROM reg.cadoles.com/proxy_cache/library/golang:1.23 AS BUILD
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y make
|
&& apt-get install -y make
|
||||||
|
@ -162,7 +162,7 @@ func (s *Server) run(parentCtx context.Context, addrs chan net.Addr, errs chan e
|
|||||||
|
|
||||||
router.Group(func(r chi.Router) {
|
router.Group(func(r chi.Router) {
|
||||||
if profiling.BasicAuth != nil {
|
if profiling.BasicAuth != nil {
|
||||||
logger.Info(ctx, "enabling authentication on metrics endpoint")
|
logger.Info(ctx, "enabling authentication on profiling endpoint")
|
||||||
|
|
||||||
r.Use(middleware.BasicAuth(
|
r.Use(middleware.BasicAuth(
|
||||||
"profiling",
|
"profiling",
|
||||||
|
@ -153,7 +153,7 @@ func (s *Server) run(parentCtx context.Context, addrs chan net.Addr, errs chan e
|
|||||||
|
|
||||||
router.Group(func(r chi.Router) {
|
router.Group(func(r chi.Router) {
|
||||||
if profiling.BasicAuth != nil {
|
if profiling.BasicAuth != nil {
|
||||||
logger.Info(ctx, "enabling authentication on metrics endpoint")
|
logger.Info(ctx, "enabling authentication on profiling endpoint")
|
||||||
|
|
||||||
r.Use(middleware.BasicAuth(
|
r.Use(middleware.BasicAuth(
|
||||||
"profiling",
|
"profiling",
|
||||||
|
Reference in New Issue
Block a user