Use nginx as a reverse proxy
See original GitHub issueI’m reluctant to include nginx as a dependency, but twisted is simply not powerful enough. It can’t set the X-Forwaded-Host
header, so when Flask redirects to a different URL, it doesn’t know the host or protocol which the client used to initiate the request.
I’ll try to not make it a mandatory dependency, such that everything runs without. However, SSL likely won’t work. This must be why everyone discourages the use of SSL with Flask directly. Not a production server, and so on…
Issue Analytics
- State:
- Created 4 years ago
- Comments:15 (15 by maintainers)
Top Results From Across the Web
NGINX Reverse Proxy
Configure NGINX as a reverse proxy for HTTP and other protocols, with support for modifying request headers and fine-tuned buffering of responses.
Read more >How to Set up & Use NGINX as a Reverse Proxy - phoenixNAP
Step 1: Install Nginx from Default Repositories · Step 2 (optional): Install Nginx from Official Repository · Step 3: Start Nginx and Configure...
Read more >How To Configure Nginx as a Reverse Proxy on Ubuntu 22.04
This tutorial will demonstrate how to set up a reverse proxy using Nginx, a popular web server and reverse proxy solution.
Read more >How to Set Up an Nginx Reverse Proxy - Hostinger
1. Install Nginx. We'll be using the apt command on Ubuntu 18.04: · 2. Disable the Default Virtual Host. Once you have installed...
Read more >How To Set Up a Reverse Proxy (Step-By-Step for Nginx ...
Nginx is an open source web server that can also serve as a reverse proxy. Apart from being used to host websites, it's...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah so the stackexchange post was about proxies, not reverse proxies. It was much easier to add headers in a reverse proxy.
Also, what a disgrace it is to only have SSLv3 and TLS1.0 available by default in 2019… on a client:
I did it so at least the webapp is usable again. I’ll leave this open until we have a decision