You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
599 B

server {
listen 80 default_server;
root /var/www/html;
index index.html;
server_name xsnexplorer.io;
# the backend api
location /api/ltc {
rewrite ^/api/ltc/(.*) /$1 break;
proxy_pass http://18.222.26.185:9000;
}
location /api/xsn {
rewrite ^/api/xsn/(.*) /$1 break;
proxy_pass http://18.224.5.222:9000;
}
location /api {
rewrite ^/api/(.*) /$1 break;
proxy_pass http://18.224.5.222:9000;
}
# caching static assets
location ~* \.(jpg|jpeg|png|gif|ico|css|js)$ {
expires 7d;
}
location / {
try_files $uri $uri/ /index.html;
}
}