Open GurjinderSingh opened 3 years ago
This is in tandem with the "Force HTTPS" option. Both of these are incorrectly placed under the "location /" section, rather than the root config (like asset caching, block common exploits, and HTTP/2 support).
It would make sense (in most cases) for these options to apply to all custom locations, rather than be configurable per location. A quick fix would be to move these definitions into the root config, with a future enhancement to make these options more configurable (however custom configuration exists already to override / add parameters.)
Submitted PR #1017 to fix this issue.
So as we discovered, that broke websockets for location /
because of they way proxy headers are used. Instead I think the fix should be to add the websockets and force https checks within the custom locations section when generating the nginx conf.
Issue is now considered stale. If you want to keep it open, please comment :+1:
thank you for creating marvellous product.
Is your feature request related to a problem? Please describe. current websocket options only working for location "/"
Describe the solution you'd like need to add on/off checkbox for custom location to allow web socket.
needs to add these extra config in custom locations.
Describe alternatives you've considered i don't think so.
Additional context
https://github.com/jc21/nginx-proxy-manager/issues/723#issuecomment-791188669