Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user nginx;
- worker_processes auto;
- error_log /var/log/nginx/error.log;
- pid /var/run/nginx.pid;
- events
- {
- worker_connections 1024;
- }
- http
- {
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
- log_format main '$remote_addr - $remote_user [$time_local] "$request" '
- '$status $body_bytes_sent "$http_referer" '
- '"$http_user_agent" "$http_x_forwarded_for"';
- access_log /var/log/nginx/access.log main;
- sendfile on;
- keepalive_timeout 65;
- server
- {
- listen 8190;
- server_name 192.168.166.66;
- location /kapis/terminal.kubesphere.io/
- {
- proxy_pass http://192.168.162.36:30880/kapis/terminal.kubesphere.io/;
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- proxy_read_timeout 86400;
- }
- location /kapis/resources.kubesphere.io/v1alpha2/users/admin/kubectl
- {
- proxy_pass http://192.168.162.36:30880/kapis/resources.kubesphere.io/v1alpha2/users/admin/kubectl;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header REMOTE-HOST $remote_addr;
- add_header X-Cache $upstream_cache_status;
- }
- location /dist/
- {
- proxy_pass http://192.168.162.36:30880/dist/;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header REMOTE-HOST $remote_addr;
- add_header X-Cache $upstream_cache_status;
- }
- location /api/v1/
- {
- proxy_pass http://192.168.162.36:30880/api/v1/;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header REMOTE-HOST $remote_addr;
- add_header X-Cache $upstream_cache_status;
- }
- location /terminal/
- {
- proxy_pass http://192.168.162.36:30880/terminal/;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header REMOTE-HOST $remote_addr;
- add_header X-Cache $upstream_cache_status;
- }
- # ...其他配置...
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement