Carlos Aguni

Highly motivated self-taught IT analyst. Always learning and ready to explore new skills. An eternal apprentice.


Serve Flask subpath proxy

17 Sep 2021 »

https://dlukes.github.io/flask-wsgi-url-prefix.html

from flask import Flask, url_for

app = Flask(__name__)

@app.route("/")
def index():
    return url_for("index")
SCRIPT_NAME=/my-app gunicorn app:app