chg: Update system config files

pull/27/head
Raphaël Vinot 2019-01-28 10:03:51 +01:00
parent 945511d6b3
commit a2c4d871fe
2 changed files with 10 additions and 4 deletions

View File

@ -3,7 +3,13 @@ server {
server_name server_domain_or_IP; server_name server_domain_or_IP;
location / { location / {
include uwsgi_params; proxy_pass_header Server;
uwsgi_pass unix:/home/<CHANGE_ME>/lookyloo/lookyloo.sock; 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/;
} }
} }

View File

@ -7,8 +7,8 @@ User=www-data
Group=www-data Group=www-data
WorkingDirectory=/home/<CHANGE_ME>/lookyloo WorkingDirectory=/home/<CHANGE_ME>/lookyloo
Environment="PATH=/home/<CHANGE_ME>/<MY_VIRTUALENV_PATH>/bin" Environment="PATH=/home/<CHANGE_ME>/<MY_VIRTUALENV_PATH>/bin"
ExecStart=/home/<CHANGE_ME>/<MY_VIRTUALENV_PATH>/bin/uwsgi --ini lookyloo.ini ExecStart=/home/<CHANGE_ME>/<MY_VIRTUALENV_PATH>/bin/start_website.py
Environment=FLASK_APP=lookyloo Environment=LOOKYLOO_HOME=/home/<CHANGE_ME>/lookyloo
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target