Luzifer / nginx-sso

SSO authentication provider for the auth_request nginx module
Apache License 2.0
286 stars 41 forks source link

Logging very picky? #55

Closed jangrewe closed 2 years ago

jangrewe commented 4 years ago

I've copied your logging config 1:1, but set it to log to file:///var/log/nginx-sso/audit.json, which didn't work. For some reason, it only works if i use file:///var/log/nginx-sso/audit.jsonl (notice the l at the end).

Luzifer commented 4 years ago

I just had a look at the code: there is nothing enforcing a special file extension.

It just opens the file you've specified and in case this did not work it should display an error. So it should work with audit.json or at least tell you why that file cannot be used.