Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
docker-test
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kunkka王辉
docker-test
Commits
c3331fdc
Commit
c3331fdc
authored
Sep 23, 2023
by
Kunkka王辉
😲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 修复
parent
105cb987
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
nginx-start.sh
src/nginx-start.sh
+9
-2
No files found.
src/nginx-start.sh
View file @
c3331fdc
...
@@ -256,14 +256,21 @@ server {
...
@@ -256,14 +256,21 @@ server {
proxy_set_header X-Ngnix-Proxy true;
proxy_set_header X-Ngnix-Proxy true;
}
}
location ^~ /smarterApi/ {
#这里一段非常恶心,建议统一整理规划一下
#test.smartwhale.galaxy-immi.com 最终还是转发到galaxy_crm
location ^~ /smarterApi/ {
rewrite ^/smarterApi/(.*)
$
/api/\
$1
last;
rewrite ^/smarterApi/(.*)
$
/api/\
$1
last;
proxy_pass http://
$HOST
:
$GALAXY_CRM_API_HTTP_PORT
;
proxy_pass http://
$HOST
:
$GALAXY_CRM_API_HTTP_PORT
;
proxy_set_header X-Forwarded-For \
$proxy_add_x_forwarded_for
;
proxy_set_header X-Forwarded-For \
$proxy_add_x_forwarded_for
;
proxy_set_header X-Real-Ip \
$remote_addr
;
proxy_set_header X-Real-Ip \
$remote_addr
;
proxy_set_header X-Ngnix-Proxy true;
proxy_set_header X-Ngnix-Proxy true;
}
}
location ^~ /api/smarterApi/ {
rewrite ^/api/smarterApi/(.*)
$
/api/\
$1
last;
proxy_pass http://
$HOST
:
$GALAXY_CRM_API_HTTP_PORT
;
proxy_set_header X-Forwarded-For
$proxy_add_x_forwarded_for
;
proxy_set_header X-Real-Ip
$remote_addr
;
proxy_set_header X-Ngnix-Proxy true;
}
location ^~ /earlyWarning/smartWhale/api/ {
location ^~ /earlyWarning/smartWhale/api/ {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment