enable debug
This commit is contained in:
14
labels
14
labels
@@ -8,7 +8,7 @@ traefik.docker.network=traefik
|
||||
traefik.http.routers.flic-webhook-webpush.rule=Host(`webpush.virtonline.eu`)
|
||||
# Specify the entrypoint ('websecure' for HTTPS)
|
||||
traefik.http.routers.flic-webhook-webpush.entrypoints=web-secure
|
||||
traefik.http.routers.flic-webhook-webpush.tls=true # Enable TLS
|
||||
traefik.http.routers.flic-webhook-webpush.tls=true
|
||||
traefik.http.routers.flic-webhook-webpush.tls.certResolver=default
|
||||
# Link the router to the service defined below
|
||||
traefik.http.routers.flic-webhook-webpush.service=flic-webhook-webpush
|
||||
@@ -17,16 +17,16 @@ traefik.http.routers.flic-webhook-webpush.service=flic-webhook-webpush
|
||||
traefik.http.services.flic-webhook-webpush.loadbalancer.server.port=3000
|
||||
|
||||
# Middleware CORS
|
||||
traefik.http.middlewares.cors-headers.headers.accesscontrolallowmethods=POST,GET,OPTIONS # Allow POST, GET, and OPTIONS requests
|
||||
traefik.http.middlewares.cors-headers.headers.accesscontrolalloworiginlist=https://game-timer.virtonline.eu # Allow requests from game-timer.virtonline.eu
|
||||
traefik.http.middlewares.cors-headers.headers.accesscontrolallowheaders=Content-Type,Authorization # Allow Content-Type and Authorization headers
|
||||
traefik.http.middlewares.cors-headers.headers.accesscontrolmaxage=600 # Cache preflight responses for 10 minutes
|
||||
traefik.http.middlewares.cors-headers.headers.addvaryheader=true # Add Vary header to responses
|
||||
traefik.http.middlewares.cors-headers.headers.accesscontrolallowmethods=POST,GET,OPTIONS
|
||||
traefik.http.middlewares.cors-headers.headers.accesscontrolalloworiginlist=https://game-timer.virtonline.eu
|
||||
traefik.http.middlewares.cors-headers.headers.accesscontrolallowheaders=Content-Type,Authorization
|
||||
traefik.http.middlewares.cors-headers.headers.accesscontrolmaxage=600
|
||||
traefik.http.middlewares.cors-headers.headers.addvaryheader=true
|
||||
# Apply the middleware to the router
|
||||
traefik.http.routers.flic-webhook-webpush.middlewares=cors-headers
|
||||
|
||||
# Middleware Rate Limiting
|
||||
traefik.http.middlewares.flic-ratelimit.ratelimit.average=10 # requests per second
|
||||
traefik.http.middlewares.flic-ratelimit.ratelimit.average=10
|
||||
traefik.http.middlewares.flic-ratelimit.ratelimit.burst=20
|
||||
# Apply the middleware to the router
|
||||
traefik.http.routers.flic-webhook-webpush.middlewares=flic-ratelimit
|
||||
|
||||
Reference in New Issue
Block a user