|
@@ -12,10 +12,13 @@ http {
|
|
sendfile on;
|
|
sendfile on;
|
|
keepalive_timeout 65;
|
|
keepalive_timeout 65;
|
|
client_max_body_size 20m;
|
|
client_max_body_size 20m;
|
|
|
|
+ proxy_cache_path /home/nginx/html/cache levels=1:2 keys_zone=mycache:500m inactive=1d max_size=10g;
|
|
|
|
+ proxy_temp_path /home/nginx/html/cache/proxy_temp;
|
|
|
|
|
|
server {
|
|
server {
|
|
listen 80;
|
|
listen 80;
|
|
server_name 124.70.62.143;
|
|
server_name 124.70.62.143;
|
|
|
|
+ proxy_cache mycache;
|
|
# ssl_certificate /home/nginx/html/yzbh/ssl/www.dljpwx.com.crt;
|
|
# ssl_certificate /home/nginx/html/yzbh/ssl/www.dljpwx.com.crt;
|
|
# ssl_certificate_key /home/nginx/html/yzbh/ssl/www.dljpwx.com.key;
|
|
# ssl_certificate_key /home/nginx/html/yzbh/ssl/www.dljpwx.com.key;
|
|
# ssl_session_cache shared:SSL:1m;
|
|
# ssl_session_cache shared:SSL:1m;
|
|
@@ -39,7 +42,7 @@ http {
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_pass http://172.18.0.1:8040/;
|
|
proxy_pass http://172.18.0.1:8040/;
|
|
proxy_read_timeout 10m;
|
|
proxy_read_timeout 10m;
|
|
- proxy_temp_file_write_size 25m;
|
|
|
|
|
|
+ proxy_cache off;
|
|
}
|
|
}
|
|
location /ezhizao-yzbh-sys/{
|
|
location /ezhizao-yzbh-sys/{
|
|
proxy_set_header Host $http_host;
|
|
proxy_set_header Host $http_host;
|
|
@@ -48,7 +51,6 @@ http {
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_pass http://172.18.0.1:8040/;
|
|
proxy_pass http://172.18.0.1:8040/;
|
|
proxy_read_timeout 10m;
|
|
proxy_read_timeout 10m;
|
|
- proxy_temp_file_write_size 25m;
|
|
|
|
}
|
|
}
|
|
location /ezhizao-yzbh-crm/{
|
|
location /ezhizao-yzbh-crm/{
|
|
proxy_set_header Host $http_host;
|
|
proxy_set_header Host $http_host;
|