diff options
| author | jvoisin | 2019-02-23 13:27:33 +0100 |
|---|---|---|
| committer | jvoisin | 2019-02-23 13:27:33 +0100 |
| commit | 1b0333fdd5175d6a45d1929218e0aac3db884139 (patch) | |
| tree | 2438036e7c3c9159ecd80c06aa1d8fd336509819 /config/nginx.config | |
| parent | 489fc7f2b5ef3d4be0f74e405a4200c6ffc12fc3 (diff) | |
Improve the deployment configuration
Diffstat (limited to 'config/nginx.config')
| -rw-r--r-- | config/nginx.config | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/config/nginx.config b/config/nginx.config new file mode 100644 index 0000000..b519ee7 --- /dev/null +++ b/config/nginx.config | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | server { | ||
| 2 | server_name _; | ||
| 3 | listen 80 default_server; | ||
| 4 | listen [::]:80 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 | } | ||
