Files
ts-onlinetime-ranks/frontend/nginx/nginx.conf
Humenius 98808879bd
Some checks failed
continuous-integration/drone/push Build is failing
Add proxy in nginx configuration
2020-06-01 17:11:21 +02:00

25 lines
587 B
Nginx Configuration File

server {
listen 80;
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;
}
location /api {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
rewrite ^/api/?(.*) /$1 break;
proxy_pass http://api.tsotr.humenius.me;
proxy_redirect off;
}
}