Repository navigation
Make username appears in logs for FreshRSS api #2690
Unanswered
Bob-le-pirate
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Dear all,
I implemented successfully FreshRSS behind nginx-reverse proxy. But following the discussion, I would like to go further and get the $remote_user printed in access.log when connected to the api.
I tried different solutions unsuccessfully.
The recommended solution seems to look at "Authorization" and if it's equal to "^GoogleLogin auth=([^/]+)" then modify accordingly the value of $remote_user. Unfortunately I don't know how to do that !
If I look at access log, I've got for freshrss container :
and the relevant for nginx reverse proxy :
Can someone help me ?
Edited january, 10th:
When I had $http_authorization to LOG_FORMAT environment variable, I found the requested information:
myserver y.y.y.y - - [10/Jan/2026:09:14:09 +0000] "GET /freshrss/api/greader.php/reader/api/0/subscription/list?output=json HTTP/2.0" 200 3525 "-" "CapyReader (RSS Reader; https://capyreader.com/)" "x.x.x.x:80" TLSv1.3 TLS_AES_128_GCM_SHA256 "application/json; charset=UTF-8" 0.032 GoogleLogin auth=bob/0123456789012345678901234567890123456789Interesting point is
GoogleLogin auth=bob/0123456789012345678901234567890123456789I would like to extract "bob" and show it as $remote_user variable
I tried this bellow (if part) without any success:
All reactions