Your ROOT_URL in app.ini is http://git.slaventius.ru/ but you are visiting http://37.143.12.169/test3k/auth/commit/28434a9fa797b6d7c65e80f116f6abfe99d6694c?style=unified&whitespace=ignore-eol
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
5 additions and
5 deletions
deploy/auth-deployment.yaml
internal/auth.go
@ -25,9 +25,9 @@ spec:
name : auth-config
readinessProbe:
httpGet:
path : /api/v1/ready
path : /api/v1/health
port : 9994
periodSeconds : 1
initialDelaySeconds : 3
failureThreshold : 1
failureThreshold : 2
successThreshold : 1
@ -32,8 +32,7 @@ func NewServer(ctx context.Context, config *config.Config) *AuthServer {
}
//
s . Router . Get ( "/api/v1/live" , live ( s ) )
s . Router . Get ( "/api/v1/ready" , live ( s ) )
s . Router . Get ( "/api/v1/health" , health ( s ) )
//
s . Router . Post ( "/api/v1/login" , login ( s ) )
@ -47,8 +46,9 @@ func (s *AuthServer) GracefulStop() error {
return s . db . Close ( )
}
func live ( s * AuthServer ) http . HandlerFunc {
func health ( s * AuthServer ) http . HandlerFunc {
return func ( w http . ResponseWriter , r * http . Request ) {
w . WriteHeader ( 200 )
w . Write ( [ ] byte ( "ok" ) )
}
}