summaryrefslogtreecommitdiff
path: root/config/nginx.config
diff options
context:
space:
mode:
authorjvoisin2019-02-23 13:27:33 +0100
committerjvoisin2019-02-23 13:27:33 +0100
commit1b0333fdd5175d6a45d1929218e0aac3db884139 (patch)
tree2438036e7c3c9159ecd80c06aa1d8fd336509819 /config/nginx.config
parent489fc7f2b5ef3d4be0f74e405a4200c6ffc12fc3 (diff)
Improve the deployment configuration
Diffstat (limited to 'config/nginx.config')
-rw-r--r--config/nginx.config14
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 @@
1server {
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}