We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently swoole access logger is logging the IP address from the caller, but if this is a proxy, it should be the forwarded one instead.
The proxy IP address is logged when serving Shlink with swoole behind a proxy.
The original forwarded IP address is logged instead.
mezzio/mezzio-swoole#9
The text was updated successfully, but these errors were encountered:
Would it be possible to specify a custom log format as mentioned here: https://docs.mezzio.dev/mezzio-swoole/v1/logging/#container-usage ?
It looks like it is possible to set a custom format for logging at docker build time using this config setting:
'mezzio-swoole' => [ 'swoole-http-server' => [ 'options' => [ 'worker_num' => (int) env('WEB_WORKER_NUM', 16), 'task_worker_num' => (int) env('TASK_WORKER_NUM', 16), ], ], ],
Sorry, something went wrong.
Yep, it would be possible. It's something I have considered several times.
However, it's easy to mess it up, so I haven't done it yet because of that.
Successfully merging a pull request may close this issue.
How Shlink is set-up
Summary
Currently swoole access logger is logging the IP address from the caller, but if this is a proxy, it should be the forwarded one instead.
Current behavior
The proxy IP address is logged when serving Shlink with swoole behind a proxy.
Expected behavior
The original forwarded IP address is logged instead.
mezzio/mezzio-swoole#9
The text was updated successfully, but these errors were encountered: