This get's the app up and running but I'm having issues with app routing. The app runs fine if I'm connected to port 5000 but when I put it behind nginx as a reverse proxy the logout link which is defined in flask as
With the following location:
location @proxy_to_app { proxy_set_header X-Real-IP $remote_addr; proxy_set_header HOST $http_host; proxy_pass http://127.0.0.1:8080/$request_uri; include proxy_params; proxy_redirect off; }
This function:
@bp.route("/logout") def logout(): """Clear the current session, including the stored user id.""" session.clear() return render_template("index.html")
Sends the user to a 500 error code.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This get's the app up and running but I'm having issues with app routing.
The app runs fine if I'm connected to port 5000 but when I put it behind nginx as a reverse proxy the logout link which is defined in flask as
With the following location:
This function:
Sends the user to a 500 error code.