mirror of
https://0xacab.org/jvoisin/mat2-web.git
synced 2025-08-03 11:54:08 -04:00
use a non root user to start nginx
This commit is contained in:
parent
853ace7d83
commit
40d4fdad9e
3 changed files with 116 additions and 24 deletions
14
config/nginx-default.conf
Normal file
14
config/nginx-default.conf
Normal 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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue