server {
listen 8912;
add_header X-XSS-Protection "1;mode=block";
add_header Referrer-Policy "no-referrer-when-downgrade";
add_header X-Download-Options noopen;
add_header X-Frame-Options SAMEORIGIN;
# add_header Content-Security-Policy "frame-ancestors https://qyfw.huli.gov.cn/";
add_header X-Content-Type-Options nosniff;
add_header X-Permitted-Cross-Domain-Policies master-only;
access_log /var/log/nginx/util-app.log;
error_log /var/log/nginx/util-app.err;
charset utf-8;
location /api/ques {
#proxy_pass http://10.0.9.184:18090/celoan;
rewrite ^/api/ques/(.*)$ /$1 break;
proxy_pass http://10.0.9.184:9001;
}
location /project {
proxy_pass http://10.0.9.184:58090;
}
location / {
root /home/luo/utils-app/shijia-h5;
index index.html index.htm;
try_files $uri $uri/ /index.html;
autoindex on;
autoindex_format html;
autoindex_exact_size off;
autoindex_localtime on;
}
}