Update nginx.conf
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2020-06-01 17:45:48 +02:00
parent f24ff1248d
commit a29fa861cb

View File

@@ -2,21 +2,24 @@ server {
listen 80;
location /api/ {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_set_header X-NginX-Proxy true;
return 200 ttestestset;
#rewrite ^/api/?(.*) /$1 break;
rewrite ^/api/?(.*) /$1 break;
#proxy_pass http://api.tsotr.humenius.me/;
proxy_pass https://api.tsotr.humenius.me/;
}
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html;
return 200;
}
error_page 500 502 503 504 /50x.html;