Skip to content
Snippets Groups Projects
Commit 55432ec9 authored by yms's avatar yms
Browse files

feat: 111

parent 61a6dfbc
No related branches found
Tags 0.0.1_082224_rc.4
No related merge requests found
Pipeline #772 canceled with stages
server {
listen 80;
fastcgi_buffers 8 256k;
send_timeout 60;
gzip on;
gzip_min_length 1k;
gzip_comp_level 9;
gzip_types text/plain text/css text/javascript application/json application/javascript application/x-javascript application/xml;
gzip_vary on;
gzip_disable "MSIE [1-6]\.";
# 本地测试
# root html/dist;
# 生产
root /usr/share/nginx/html;
location = /favicon.ico {
allow all;
}
location / {
try_files $uri $uri/ /index.html;
}
location /eventApi {
rewrite ^/eventApi/(.*)$ /$1 break;
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS';
add_header Access-Control-Allow-Headers 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization';
proxy_pass http://PROXY_WEB_SERVICE;
proxy_redirect default;
}
location /api2 {
rewrite ^/api2/(.*)$ /$1 break;
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS';
add_header Access-Control-Allow-Headers 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization';
proxy_pass http://PROXY_WEBEVENT_SERVICE;
proxy_redirect default;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment