1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- server {
- listen 80;
- server_name www.cofortest.com;
- root /usr/share/nginx/html;
-
- client_max_body_size 100m;
-
-
- proxy_buffering on;
-
- proxy_buffer_size 128k;
-
- proxy_buffers 8 1M;
- proxy_busy_buffers_size 2M;
- location / {
- root /usr/share/nginx/html;
- }
- location /api {
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_pass http://backend:8080;
- proxy_connect_timeout 1200s;
- proxy_read_timeout 1200s;
- proxy_send_timeout 1200s;
- }
- location /recommendationtest {
- proxy_pass http://taskRecommend:7477;
- }
-
-
-
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- root html;
- }
- }
|