aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitea <gitea@fake.local>2020-01-23 03:45:46 +0000
committerGitea <gitea@fake.local>2020-01-23 03:45:46 +0000
commit2a296035d3d4730bfd83fd224bb057e8d60a48e4 (patch)
tree7551fc4934b21f2db4669b5cb75d71b49947589b
parent8c7fe855698907bafb58e048c36c60a997215682 (diff)
repilicated actual nginx.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
}
}
}