chore: add Npgsql log level config to suppress GSSAPI warnings
- Set Logging__LogLevel__Npgsql to Error in ConfigMap - Prevents libgssapi_krb5.so.2 warning spam in logs
This commit is contained in:
parent
2a60caae80
commit
02c5d8c72d
22
k8s/test/configmap.yaml
Normal file
22
k8s/test/configmap.yaml
Normal file
@ -0,0 +1,22 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: fengling-auth-config
|
||||
namespace: fengling-test
|
||||
data:
|
||||
ASPNETCORE_ENVIRONMENT: "Production"
|
||||
ASPNETCORE_URLS: "http://0.0.0.0:8080"
|
||||
|
||||
# OpenIddict 配置
|
||||
OpenIddict__IssuerUri: "http://fengling-auth-service.fengling-test.svc.cluster.local"
|
||||
OpenIddict__TokenLifetime: "3600"
|
||||
OpenIddict__RefreshTokenLifetime: "604800"
|
||||
|
||||
# CORS 配置(允许网关和管理控制台访问)
|
||||
Cors__AllowedOrigins: "http://localhost:5173,http://localhost:5174"
|
||||
|
||||
# 日志级别
|
||||
Logging__LogLevel__Default: "Information"
|
||||
Logging__LogLevel__Microsoft.AspNetCore: "Warning"
|
||||
Logging__LogLevel__Npgsql: "Error" # 隐藏 GSSAPI 警告
|
||||
Logging__LogLevel__OpenIddict: "Information"
|
||||
Loading…
Reference in New Issue
Block a user