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.
30 lines
876 B
30 lines
876 B
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
server_name jg.yyundong.com;
|
|
client_max_body_size 1000m;
|
|
location / {
|
|
root /usr/share/nginx/html/supervise/supervise-portal-ui;
|
|
index index.html index.htm;
|
|
}
|
|
location /portal{
|
|
root /usr/share/nginx/html/supervise/supervise-portal-ui;
|
|
index index.html index.htm;
|
|
}
|
|
|
|
location /api/ {
|
|
proxy_pass http://172.18.0.1:8112/;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_set_header X-Forwarded-Port $server_port;
|
|
proxy_buffer_size 512k;
|
|
proxy_buffers 4 512k;
|
|
proxy_busy_buffers_size 512k;
|
|
proxy_temp_file_write_size 512k;
|
|
}
|
|
|
|
error_page 500 502 503 504 /50x.html;
|
|
location = /50x.html {
|
|
root html;
|
|
}
|
|
}
|