diff --git a/etc/nginx/sites-available/lookyloo b/etc/nginx/sites-available/lookyloo index fc4a417..2bd9f63 100644 --- a/etc/nginx/sites-available/lookyloo +++ b/etc/nginx/sites-available/lookyloo @@ -3,7 +3,13 @@ server { server_name server_domain_or_IP; location / { - include uwsgi_params; - uwsgi_pass unix:/home//lookyloo/lookyloo.sock; + proxy_pass_header Server; + proxy_set_header Host $http_host; + proxy_redirect off; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Scheme $scheme; + proxy_connect_timeout 10; + proxy_read_timeout 10; + proxy_pass http://localhost:5100/; } } diff --git a/etc/systemd/system/lookyloo.service b/etc/systemd/system/lookyloo.service index 846035a..c8cc04d 100644 --- a/etc/systemd/system/lookyloo.service +++ b/etc/systemd/system/lookyloo.service @@ -7,8 +7,8 @@ User=www-data Group=www-data WorkingDirectory=/home//lookyloo Environment="PATH=/home///bin" -ExecStart=/home///bin/uwsgi --ini lookyloo.ini -Environment=FLASK_APP=lookyloo +ExecStart=/home///bin/start_website.py +Environment=LOOKYLOO_HOME=/home//lookyloo [Install] WantedBy=multi-user.target