Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
fe-data-trusted-space
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
6b8f03ed
authored
2026-03-13 18:20:32 +0800
by
xu
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Add new file
1 parent
aefe7ae6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
tds.conf
tds.conf
0 → 100644
View file @
6b8f03e
server
{
listen
81
;
listen
[::]:
81
;
server_name
localhost
;
client_max_body_size
100
M
;
# 设置允许跨域的域名,可以使用通配符 '*' 允许所有域访问
add_header
'Access-Control-Allow-Origin'
*
always
;
# 设置允许的 HTTP 方法
add_header
'Access-Control-Allow-Methods'
'GET, POST, OPTIONS, DELETE, PUT'
;
# 设置允许的请求头
add_header
'Access-Control-Allow-Headers'
'Authorization, Content-Type, Accept, Origin, X-Requested-With'
;
# 如果需要支持 cookie,可以设置以下 header
add_header
'Access-Control-Allow-Credentials'
'true'
;
# 缓存设置
add_header
Cache
-
Control
no
-
cache
;
add_header
Cache
-
Control
private
;
location
/ {
proxy_pass
http
://
daop
-
gateway
:
8053
/
ms
-
connector
-
trust
-
data
-
space
-
service
/;
proxy_set_header
X
-
Real
-
IP
$
remote_addr
;
proxy_set_header
C
-
Real
-
IP
$
remote_addr
;
}
location
/
tds
-
api
/ {
proxy_pass
http
://
daop
-
gateway
:
8053
/
ms
-
connector
-
trust
-
data
-
space
-
service
/
contract
-
use
/
api
-
use
;
proxy_set_header
X
-
Real
-
IP
$
remote_addr
;
proxy_set_header
C
-
Real
-
IP
$
remote_addr
;
}
}
\ No newline at end of file
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment