update
This commit is contained in:
@@ -33,7 +33,7 @@ spec:
|
|||||||
|
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /api/v1/player/stats?auth=1
|
path: /api/server/statistics/ping
|
||||||
port: http
|
port: http
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 5
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
@@ -42,7 +42,7 @@ spec:
|
|||||||
|
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /api/v1/player/stats?auth=1
|
path: /api/server/statistics/ping
|
||||||
port: http
|
port: http
|
||||||
initialDelaySeconds: 15
|
initialDelaySeconds: 15
|
||||||
periodSeconds: 20
|
periodSeconds: 20
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ type ServiceContext struct {
|
|||||||
func NewServiceContext(c config.Config) *ServiceContext {
|
func NewServiceContext(c config.Config) *ServiceContext {
|
||||||
// Initialize database connection
|
// Initialize database connection
|
||||||
db, err := sql.Open("postgres", c.Database.DSN)
|
db, err := sql.Open("postgres", c.Database.DSN)
|
||||||
println(c.Database.DSN)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("Failed to connect to database: %v", err)
|
log.Fatalf("Failed to connect to database: %v", err)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user