Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
tingweiwang
/
configmap-kpl
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 699351fa
authored
Jul 24, 2020
by
wangtingwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复 deploy.seetatech.com接口转发问题
1 parent
75bac506
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
kpl/cfg-kpl-nginx.yaml
kpl/cfg-kpl-nginx.yaml
View file @
699351f
...
@@ -15,6 +15,17 @@ data:
...
@@ -15,6 +15,17 @@ data:
resolver kube-dns.kube-system.svc.cluster.local valid=5s;
resolver kube-dns.kube-system.svc.cluster.local valid=5s;
proxy_pass http://kpl--frontend.kpl.svc.cluster.local:80$request_uri;
proxy_pass http://kpl--frontend.kpl.svc.cluster.local:80$request_uri;
}
}
location /api {
proxy_pass http://kpl--backend:8919/api/v1/deploy/api;
proxy_set_header Host $host;
proxy_connect_timeout 10s;
proxy_read_timeout 3600s;
proxy_send_timeout 3600s;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
location ^~ /api/v1 {
location ^~ /api/v1 {
resolver kube-dns.kube-system.svc.cluster.local valid=5s;
resolver kube-dns.kube-system.svc.cluster.local valid=5s;
proxy_pass http://kpl--backend.kpl.svc.cluster.local:8919$request_uri;
proxy_pass http://kpl--backend.kpl.svc.cluster.local:8919$request_uri;
...
...
Write
Preview
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