use a non root user to start nginx

This commit is contained in:
Jan Friedli 2020-03-28 13:45:19 +01:00
parent 853ace7d83
commit 40d4fdad9e
No known key found for this signature in database
GPG key ID: F945FA2FCA30549D
3 changed files with 116 additions and 24 deletions

14
config/nginx-default.conf Normal file
View file

@ -0,0 +1,14 @@
server {
server_name _;
listen 8080 default_server;
listen [::]:8080 default_server;
client_max_body_size 20M;
root /var/www/mat2-web;
location / { try_files $uri @yourapplication; }
location @yourapplication {
include uwsgi_params;
uwsgi_pass unix:/var/www/mat2-web/mat2-web.sock;
}
}