Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Cd Comprehensive Web
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cityLevel
Cd Comprehensive Web
Commits
932693ae
An error occurred while fetching merge requests data.
Commit
932693ae
authored
1 month ago
by
汤绍坚
Browse files
Options
Downloads
Patches
Plain Diff
tsj: 调整cooglMap相关的代理
parent
648f5f4d
No related branches found
Branches containing commit
Tags
city_1.0.7-arm
Tags containing commit
Loading
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config/nginx.conf
+2
-2
2 additions, 2 deletions
config/nginx.conf
config/proxy.ts
+3
-3
3 additions, 3 deletions
config/proxy.ts
with
5 additions
and
5 deletions
config/nginx.conf
+
2
−
2
View file @
932693ae
...
...
@@ -28,8 +28,8 @@
proxy_redirect
default
;
}
location
/region
{
rewrite
^/region/(.*)
$
/kelan/
$1
break
;
location
/region
/coogl
{
rewrite
^/region/
coogl/
(.*)
$
/kelan/
$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'
;
...
...
This diff is collapsed.
Click to expand it.
config/proxy.ts
+
3
−
3
View file @
932693ae
...
...
@@ -14,10 +14,10 @@ export default {
secure
:
false
,
},
// 网格和区域API代理
'
/region
'
:
{
target
:
'
https://10.1.174.34:13600
/kelan
'
,
'
/region
/coogl
'
:
{
target
:
'
https://10.1.174.34:13600
'
,
changeOrigin
:
true
,
pathRewrite
:
{
'
^/region
'
:
'
'
},
pathRewrite
:
{
'
^/region
/coogl
'
:
'
kelan
'
},
logLevel
:
'
debug
'
,
secure
:
false
,
},
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment