Files
Humenius 901d720a61
Some checks failed
continuous-integration/drone/push Build is failing
Temporarily disable CORS as nginx does weird stuff
2020-06-01 19:17:47 +02:00

28 lines
728 B
Nginx Configuration File

server {
listen 80;
server_name tsotr.humenius.me;
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_pass http://api.tsotr.humenius.me/;
proxy_redirect off;
}
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}