Project

General

Profile

Actions

Install

dnf install -y epel-release
dnf install -y nginx supervisor
systemctl enable supervisord
systemctl start supervisord

supervisor config

vi /etc/supervisord.d/domainparking.ini
[program:domainparking]
command = /opt/parking/.venv/bin/uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
directory = /opt/parking
# user = www
autostart=true

nginx config

    server {
        listen       80;
        listen       [::]:80;
        server_name  _;
        #root         /usr/share/nginx/html;
	root /opt/parking/frontend;

        # Load configuration files for the default server block.
        include /etc/nginx/default.d/*.conf;

        error_page 404 /404.html;
        location = /404.html {
        }

        error_page 500 502 503 504 /50x.html;
        location = /50x.html {
        }
    }

Updated by Viacheslav Anzhiganov 10 days ago · 3 revisions

Redmine Appliance - Powered by TurnKey Linux