fix: strip conditional headers in bot-block-proxy to fix CalDAV sync
nginx's not_modified_filter evaluated If-Match headers forwarded by Traefik's forwardAuth, returning 412 and breaking CalDAV VTODO updates from macOS/iOS Reminders. Switch to OpenResty and clear conditional headers with Lua before proxy processing.
This commit is contained in:
parent
813148c4af
commit
da7a11eb3b
1 changed files with 7 additions and 1 deletions
|
|
@ -307,6 +307,12 @@ resource "kubernetes_config_map" "bot_block_proxy_config" {
|
|||
server {
|
||||
listen 8080;
|
||||
location /auth {
|
||||
access_by_lua_block {
|
||||
ngx.req.clear_header("If-Match")
|
||||
ngx.req.clear_header("If-None-Match")
|
||||
ngx.req.clear_header("If-Modified-Since")
|
||||
ngx.req.clear_header("If-Unmodified-Since")
|
||||
}
|
||||
proxy_pass http://poison_fountain;
|
||||
proxy_connect_timeout 3s;
|
||||
proxy_read_timeout 5s;
|
||||
|
|
@ -373,7 +379,7 @@ resource "kubernetes_deployment" "bot_block_proxy" {
|
|||
}
|
||||
container {
|
||||
name = "nginx"
|
||||
image = "nginx:1-alpine"
|
||||
image = "openresty/openresty:alpine"
|
||||
|
||||
port {
|
||||
container_port = 8080
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue