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

50 lines
1.0 KiB
Plaintext

server {
listen 80;
server_name fjtb.bj-eib.com;
client_max_body_size 20M;
location /api/ {
proxy_pass http://127.0.0.1:9090/;
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;
}
location /admin/ {
proxy_pass http://127.0.0.1:8088/;
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;
}
location /uploads {
root /var/www/insure/static;
}
location / {
root /var/www/insure-html;
try_files $uri $uri/ /index.html;
}
location ~ /\. {
deny all;
}
}
server {
listen 8088;
server_name localhost;
root /var/www/insure-admin-html;
location /admin/ {
index index.html;
}
location ~ /\. {
deny all;
}
}