Commit 6f5f7b8a by tingweiwang

增加docs路由转发

1 parent 59b90391
Showing with 13 additions and 1 deletions
...@@ -102,7 +102,19 @@ data: ...@@ -102,7 +102,19 @@ data:
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade"; proxy_set_header Connection "upgrade";
} }
location ^~ /docs {
resolver {{ K8S_DNS_SVC }} valid=5s;
proxy_pass http://kpl--backend.kpl.svc.cluster.local:8919$request_uri;
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 ~ /jupyterlab/proxy/([-_.:\w]+)/(.*) { location ~ /jupyterlab/proxy/([-_.:\w]+)/(.*) {
resolver {{ K8S_DNS_SVC }} valid=5s; #修改成自己环境dns组件service名字 resolver {{ K8S_DNS_SVC }} valid=5s; #修改成自己环境dns组件service名字
rewrite_log on; rewrite_log on;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!