@@ -63,8 +63,8 @@ http
location /plot {
root $folder_name;
- proxy_pass http://127.0.0.1:5000;
- #proxy_redirect off;
+ proxy_pass http://host.docker.internal:5000;
+ proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
@@ -9,6 +9,7 @@ app = Flask(__name__)
def index():
return 'Hello, World!'
+
if __name__ == "__main__":
monkey.patch_all()
http_server = WSGIServer(('0.0.0.0', 5000), app)