Closed Nounoursdestavernes closed 4 months ago
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.
I found a work around by modifying the nginx.conf file by adding new logs, but it is not satsifying for me.
Why is that not satisfying? The linxuserver team helpfully provide the nginx config so you're able to customize and make things work where needed.
I don't understand why there's an expectation for them to also support & handle BookStack's app-level settings, which is something I'd advise against since the value format may not align with the intended purpose here and/or might be something changed at the app-level in future.
I don't see this as a bug, but a feature request or a bug in expectations.
Hi @ssddanbrown
In my opinion it is not satisfying for two reasons:
I understand the fact that they don't have to support and handle BookStack's app-level settings. But this is not my vision of docker images and docker compose. For me they are a layer that is design to help to deploy and configure the app and it's environment more easily.
With your explanation of your vision I agree that is more a feature request than a bug.
BTW I am available to help to dev this feature.
EDIT : After debating with a friend I change my vision and this is clearly a feature and this is far from being mandatory or needed. This is more a bonus and could effectively could create breaking change with future versions of BookStack.
Solving this would need to edit files we have no intention to automatically change. As Dan points out, we expose the nginx configuration to the user, for this very purpose.
Implementing this change OOTB raises multiple issues.
Steps that can be taken are:
Hi @Roxedus
Thanks for the explanation. I better understand the issues raised by my proposition and why it shouldn't be implemented as it was proposed.
Is there an existing issue for this?
Current Behavior
I have setup APP_PROXIES="*" in order to add an anti-bruteforce software based on logs. It work perfectly in the Audit page in bookstack through the header x-forwarded-for . But Nginx logs are still loging docker's IP and not the client one.
I found a work around by modifying the nginx.conf file by adding new logs, but it is not satsifying for me.
Expected Behavior
When the APP_PROXIES is set then Nginx log the IP through x-forwarded-for header as bookstack do.
Steps To Reproduce
Environment
CPU architecture
x86-64
Docker creation
Container logs