diff options
| author | Jan Friedli | 2020-03-28 13:45:19 +0100 |
|---|---|---|
| committer | Jan Friedli | 2020-05-09 21:16:09 +0200 |
| commit | 40d4fdad9e8ce5872adf18100196fa77044642c1 (patch) | |
| tree | 4028f88ecb40d7ad5c50a7eed5434f4355d3e682 /config/nginx-default.conf | |
| parent | 853ace7d83424f85d903f6ffe2352bf41f86b7ce (diff) | |
use a non root user to start nginx
Diffstat (limited to 'config/nginx-default.conf')
| -rw-r--r-- | config/nginx-default.conf | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/config/nginx-default.conf b/config/nginx-default.conf new file mode 100644 index 0000000..fd3e2f1 --- /dev/null +++ b/config/nginx-default.conf | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | server { | ||
| 2 | server_name _; | ||
| 3 | listen 8080 default_server; | ||
| 4 | listen [::]:8080 default_server; | ||
| 5 | client_max_body_size 20M; | ||
| 6 | |||
| 7 | root /var/www/mat2-web; | ||
| 8 | |||
| 9 | location / { try_files $uri @yourapplication; } | ||
| 10 | location @yourapplication { | ||
| 11 | include uwsgi_params; | ||
| 12 | uwsgi_pass unix:/var/www/mat2-web/mat2-web.sock; | ||
| 13 | } | ||
| 14 | } | ||
