mirror of
https://gitee.com/myxzgzs/boyue_jnpf.git
synced 2025-08-10 00:02:41 +08:00
40 lines
927 B
Plaintext
40 lines
927 B
Plaintext
![]() |
server {
|
||
|
listen 8881;
|
||
|
server_name localhost;
|
||
|
root /usr/share/nginx/html/tenant-admin;
|
||
|
index index.html;
|
||
|
|
||
|
gzip on;
|
||
|
gzip_static on;
|
||
|
gzip_min_length 1k;
|
||
|
gzip_comp_level 4;
|
||
|
gzip_proxied any;
|
||
|
gzip_types text/plain text/xml text/css;
|
||
|
gzip_vary on;
|
||
|
gzip_http_version 1.0;
|
||
|
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
|
||
|
|
||
|
# JNPF-START
|
||
|
# 设置上传文件的大小
|
||
|
client_max_body_size 100m;
|
||
|
|
||
|
# 添加头部信息
|
||
|
proxy_set_header Host $http_host;
|
||
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||
|
proxy_set_header X-NginX-Proxy true;
|
||
|
# This is necessary to pass the correct IP to be hashed
|
||
|
real_ip_header X-Real-IP;
|
||
|
proxy_connect_timeout 300;
|
||
|
|
||
|
location / {
|
||
|
try_files $uri $uri/ /index.html;
|
||
|
}
|
||
|
|
||
|
# 后端服务
|
||
|
location /prod/ {
|
||
|
proxy_pass http://222.184.49.22:30006;
|
||
|
}
|
||
|
}
|