aboutsummaryrefslogtreecommitdiff
path: root/nginx.example.conf
diff options
context:
space:
mode:
Diffstat (limited to 'nginx.example.conf')
-rw-r--r--nginx.example.conf17
1 files changed, 9 insertions, 8 deletions
diff --git a/nginx.example.conf b/nginx.example.conf
index d2899f4..64b54e5 100644
--- a/nginx.example.conf
+++ b/nginx.example.conf
@@ -1,17 +1,18 @@
http{
server {
- server_name dyn.localhost;
- index index.html;
- location = /favicon.ico {
- root /srv/www;
+ server_name domain.com;
+ location = /minimun {
+ return 301 https://$server_name/minimun
}
- location ~ ^/(|index.html)$ {
- root /root/minimun/www;
+ location = /minimun/ {
+ root /home/minimun/minimun/www/;
+ try_files /index.html =404;
}
- location / {
+ location /minimun {
+ gzip off;
include uwsgi_params;
uwsgi_modifier1 9;
- uwsgi_pass 127.0.0.1:8080;
+ uwsgi_pass unix:/run/uwsgi/minimun.sock
}
}
}