1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- server {
- listen 80;
- access_log /var/log/nginx/cwp-pages.log main;
- root /opt/sagacloud/app/dist;
- index index.html;
- location / {
- try_files $uri $uri/ @router;
- index index.html;
- }
- location @router {
- rewrite ^.*$ /index.html last;
- }
- location ^~ /anon/ {
- #proxy_pass http://web02:52011;
- proxy_pass http://cwp.sagacloud.cn;
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- client_max_body_size 20m;
- client_body_buffer_size 128k;
- proxy_buffers 32 4k;
- proxy_connect_timeout 3;
- proxy_send_timeout 30;
- proxy_read_timeout 30;
- }
- location ^~ /server/ {
- #proxy_pass http://web02:52011;
- proxy_pass http://cwp.sagacloud.cn;
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- client_max_body_size 20m;
- client_body_buffer_size 128k;
- proxy_buffers 32 4k;
- proxy_connect_timeout 3;
- proxy_send_timeout 30;
- proxy_read_timeout 30;
- }
- location ^~ /duoduo-service/ {
- #proxy_pass http://web02:52011;
- proxy_pass http://cwp.sagacloud.cn;
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- client_max_body_size 20m;
- client_body_buffer_size 128k;
- proxy_buffers 32 4k;
- proxy_connect_timeout 3;
- proxy_send_timeout 30;
- proxy_read_timeout 30;
- }
- location ^~ /image-service/ {
- #proxy_pass http://172.17.11.172:8889;
- proxy_pass http://api.sagacloud.cn;
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- client_max_body_size 20m;
- client_body_buffer_size 128k;
- proxy_buffers 32 4k;
- proxy_connect_timeout 3;
- proxy_send_timeout 30;
- proxy_read_timeout 30;
- rewrite ^/image-service/(.*) /dp-auxiliary/image-service/$1 break;
- }
- location ^~ /graphy-service/ {
- proxy_pass http://api.sagacloud.cn;
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- client_max_body_size 20m;
- client_body_buffer_size 128k;
- proxy_buffers 32 4k;
- proxy_connect_timeout 3;
- proxy_send_timeout 30;
- proxy_read_timeout 30;
- rewrite ^/graphy-service/(.*) /du-auxiliary/image-service/$1 break;
- }
- }
|