How to server Python Flask via Hestia

Hi can anyone help in serving Flask App via gunicorn in Hestia

looks like a flask app just runs on a port, easiest thing is to create a custom template and adjust proxy_pass var you’ll find more here: Web domains and SSL Certicates — Hestia Control Panel documentation

Can i configure Nginx to redirect?Below config is not working

nginx_config

Please use backtics and post the code instead of a screenshot.

Here my code

Here is the code

server {
    listen       10.0.0.119:8083;
    server_name  _;
    #access_log  /var/log/nginx/10.0.0.119.log main;
    location / {
	proxy_pass  http://127.0.0.1:5000;
    }
}

Actually there was a firewall block, I added 8083 port to the rule and it worked

8083 is by default used by hestia-nginx unless you have changed it.

But you should be able to use 80 or 443 instead

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.