-
Notifications
You must be signed in to change notification settings - Fork 0
Deployment
Keane Nguyen edited this page Jul 23, 2018
·
3 revisions
- Install lost-n-phoned.
- Choose a WSGI server like Gunicorn, uWSGI, or Waitress and install it.
- Bind the WSGI server to
localhost
on a port other than 80 or 443. - (Optional?) Set the WSGI server's url scheme to
https
. This tells the Flask app to generatehttps
URLs. - Run
lostnphoned.app
with the WSGI server. - Choose a web server like Apache, Nginx, or Caddy and install it.
- Configure the server as a reverse-proxy. Forward requests to the WSGI server using regular HTTP. Tell the web server to pass the following headers to the WSGI server (so that Flask generates correct, publicly accessible URLs):
- Host
- X-Real-IP
- Make sure the web server uses HTTPS with visitors. This is required because OAuth2 will not work over HTTP. This step is somewhat involved.
- Run or restart the web server.