Reverse proxy settings
bobberb opened this issue · comments
Dear vimflowers,
I recently deployed vimflowy with docker and was able to connect through an ngrok tunnel. I tried this setup for a reverse proxy:
``
location /notes {
proxy_bind $server_addr;
proxy_bind $server_addr;
proxy_pass http://127.0.0.1:8873;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Scheme $scheme;
proxy_set_header X-Script-Name /notes;
`'
unsuccessfully. Could anyone share their setup?
thank you.
what's the error? my guess is it's not working because you need to handle websocket connections. See: https://www.nginx.com/blog/websocket-nginx/
also curious - what's your use case? If you do end up getting this working, feel free to send a PR updating the docker file (assuming you're doing nginx in the docker container and not outside). even if there's no functional difference it might become easier for others to add SSL, etc.
I`m using Caddy as reverse proxy with automatic Let's Encrypt SSL and everything is described in here. If you still have this problem I can try to deploy it on Nginx and see if i can make it work.