12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- server {
- listen 80;
- access_log /var/log/nginx/review-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 ^~ /duoduo-service/ {
- proxy_pass http://review.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 ^/duoduo-service/(.*) /$1 break;
- }
- location ^~ /server/ {
- proxy_pass http://review.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 ^/server/(.*) /$1 break;
- }
-
- }
|