6b8f03ed by xu

Add new file

1 parent aefe7ae6
Showing 1 changed file with 29 additions and 0 deletions
1 server {
2 listen 81;
3 listen [::]:81;
4 server_name localhost;
5 client_max_body_size 100M;
6 # 设置允许跨域的域名,可以使用通配符 '*' 允许所有域访问
7 add_header 'Access-Control-Allow-Origin' * always;
8 # 设置允许的 HTTP 方法
9 add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS, DELETE, PUT';
10 # 设置允许的请求头
11 add_header 'Access-Control-Allow-Headers' 'Authorization, Content-Type, Accept, Origin, X-Requested-With';
12 # 如果需要支持 cookie,可以设置以下 header
13 add_header 'Access-Control-Allow-Credentials' 'true';
14 # 缓存设置
15 add_header Cache-Control no-cache;
16 add_header Cache-Control private;
17
18 location / {
19 proxy_pass http://daop-gateway:8053/ms-connector-trust-data-space-service/;
20 proxy_set_header X-Real-IP $remote_addr;
21 proxy_set_header C-Real-IP $remote_addr;
22 }
23
24 location /tds-api/ {
25 proxy_pass http://daop-gateway:8053/ms-connector-trust-data-space-service/contract-use/api-use;
26 proxy_set_header X-Real-IP $remote_addr;
27 proxy_set_header C-Real-IP $remote_addr;
28 }
29 }
...\ No newline at end of file ...\ No newline at end of file
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!