ага, добавил запись из локейшна в дебаг лог, но там не видно заголовков которые приходят из
auth_request может что то нужно специальное для этого написать? сейчас мой локейшн выглядит вот так
location /quests/api/ {
auth_request /authentication/quests_authorized;
proxy_pass 'http://quests-api:3012/quests/api/';
error_log /var/log/nginx/debug.log debug;
}
и вот такой дебаг лог я получаю
`2021/06/20 09:32:04 [debug] 71#71: *37 write new buf t:1 f:0 0000558B01FF3F48, pos 0000558B01FF3F48, size: 489 file: 0, size: 0
2021/06/20 09:32:04 [debug] 71#71: *37 http write filter: l:0 f:0 s:489
2021/06/20 09:32:04 [debug] 71#71: *37 http cacheable: 0
2021/06/20 09:32:04 [debug] 71#71: *37 http proxy filter init s:404 h:0 c:1 l:-1
2021/06/20 09:32:04 [debug] 71#71: *37 http upstream process upstream
2021/06/20 09:32:04 [debug] 71#71: *37 pipe read upstream: 0
2021/06/20 09:32:04 [debug] 71#71: *37 pipe preread: 5
2021/06/20 09:32:04 [debug] 71#71: *37 pipe buf free s:0 t:1 f:0 0000558B01FF4360, pos 0000558B01FF4508, size: 5 file: 0, size: 0
2021/06/20 09:32:04 [debug] 71#71: *37 pipe length: 3
2021/06/20 09:32:04 [debug] 71#71: *37 http chunked byte: 30 s:0
2021/06/20 09:32:04 [debug] 71#71: *37 http chunked byte: 0D s:1
2021/06/20 09:32:04 [debug] 71#71: *37 http chunked byte: 0A s:8
2021/06/20 09:32:04 [debug] 71#71: *37 http chunked byte: 0D s:9
2021/06/20 09:32:04 [debug] 71#71: *37 http chunked byte: 0A s:10
2021/06/20 09:32:04 [debug] 71#71: *37 http proxy chunked state 0, length 0
2021/06/20 09:32:04 [debug] 71#71: *37 pipe write downstream: 1
2021/06/20 09:32:04 [debug] 71#71: *37 pipe write downstream done
2021/06/20 09:32:04 [debug] 71#71: *37 event timer del: 5: 63879323
2021/06/20 09:32:04 [debug] 71#71: *37 event timer add: 5: 60000:63881679
2021/06/20 09:32:04 [debug] 71#71: *37 http upstream exit: 0000000000000000
2021/06/20 09:32:04 [debug] 71#71: *37 finalize http upstream request: 0
2021/06/20 09:32:04 [debug] 71#71: *37 finalize http proxy request
2021/06/20 09:32:04 [debug] 71#71: *37 free rr peer 1 0
2021/06/20 09:32:04 [debug] 71#71: *37 close http upstream connection: 5
2021/06/20 09:32:04 [debug] 71#71: *37 free: 0000558B02003730, unused: 48
2021/06/20 09:32:04 [debug] 71#71: *37 event timer del: 5: 63881679
2021/06/20 09:32:04 [debug] 71#71: *37 reusable connection: 0
2021/06/20 09:32:04 [debug] 71#71: *37 http upstream temp fd: -1
2021/06/20 09:32:04 [debug] 71#71: *37 http output filter "/quests/api/v1/daily_quests?user_id=20129302"
2021/06/20 09:32:04 [debug] 71#71: *37 http copy filter: "/quests/api/v1/daily_quests?user_id=20129302"
2021/06/20 09:32:04 [debug] 71#71: *37 http ssi filter "/quests/api/v1/daily_quests?user_id=20129302"
2021/06/20 09:32:04 [debug] 71#71: *37 posix_memalign: 0000558B0203B740:4096 @16
2021/06/20 09:32:04 [debug] 71#71: *37 ssi out: 0000558B0203B760 0000000000000000
2021/06/20 09:32:04 [debug] 71#71: *37 http postpone filter "/quests/api/v1/daily_quests?user_id=20129302" 0000558B0203B7B0
2021/06/20 09:32:04 [debug] 71#71: *37 http chunk: 0
2021/06/20 09:32:04 [debug] 71#71: *37 write old buf t:1 f:0 0000558B01FF3F48, pos 0000558B01FF3F48, size: 489 file: 0, size: 0
2021/06/20 09:32:04 [debug] 71#71: *37 write new buf t:0 f:0 0000000000000000, pos 0000000000000000, size: 0 file: 0, size: 0
2021/06/20 09:32:04 [debug] 71#71: *37 write new buf t:0 f:0 0000000000000000, pos 0000558B0159A467, size: 5 file: 0, size: 0
2021/06/20 09:32:04 [debug] 71#71: *37 http write filter: l:1 f:0 s:494
2021/06/20 09:32:04 [debug] 71#71: *37 http write filter limit 0
2021/06/20 09:32:04 [debug] 71#71: *37 writev: 494 of 494
2021/06/20 09:32:04 [debug] 71#71: *37 http write filter 0000000000000000
2021/06/20 09:32:04 [debug] 71#71: *37 http copy filter: 0 "/quests/api/v1/daily_quests?user_id=20129302"
2021/06/20 09:32:04 [debug] 71#71: *37 http finalize request: 0, "/quests/api/v1/daily_quests?user_id=20129302" a:1, c:1
2021/06/20 09:32:04 [debug] 71#71: *37 set http keepalive handler
2021/06/20 09:32:04 [debug] 71#71: *37 http close request