proxy_pass http://localhost:9000; } } 缓存Caching proxy_cache_path /path/to/cache levels=1:2 keys_zone=my_cache:10m max_size=10g inactive=60m use_temp_path=off; server {# ...location / { proxy_cache my_cache; proxy_set_header Host$http_host; proxy_pass http://localhost:9000; }...
ssl_prefer_server_ciphers on;下面的location不能是/minio,因为minio访问的地址没有这个路径,所以报错,这里必须是跟/location/minio{ proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_set_header X-Forwarde...
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_connect_timeout 300; proxy_http_version 1.1; chunked_transfer_encoding off; proxy_ignore_client_abort on; proxy_pass http://minio_console; } } 重启加载配置 nginx...
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header Host $http_host; proxy_connect_timeout 300; # Default is HTTP/1, keepalive is only enabled in HTTP/1.1 proxy_http_versio...
proxy_http_version 1.1; proxy_set_header Connection ""; chunked_transfer_encoding off; proxy_ignore_client_abort on; proxy_pass http://minio_servers; # If you are using docker-compose this would be the hostname i.e. minio } location ~ /paas/download/.*/(jpg|png|unkown|gif|jpeg|mp4)...
proxy_set_header Host $http_host; 1. proxy_set_header X-Forwarded-For $remote_addr; 1. client_body_buffer_size 10M; 1. client_max_body_size 10G; 1. proxy_buffers 1024 4k; 1. proxy_read_timeout 300; 1. proxy_next_upstream error timeout http_404; ...
proxy_buffering off; location / { proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_connect_timeout 300; ...
# 配置管理页面地址 http://oss.example.netserver{listen80;server_nameoss.example.net;location/{proxy_set_headerHost$http_host;# 防止上传时提示SignatureDoesNotMatch错误proxy_connect_timeout300;proxy_http_version1.1;proxy_passhttp://localhost:9000;}location/ui/{rewrite^/ui/(.*)/$1break;# 添加...
proxy_buffering off; location / { proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_connect_timeout 300; ...
proxy_set_header Host $http_host; proxy_connect_timeout 300; # Default is HTTP/1, keepalive is only enabled in HTTP/1.1 proxy_http_version 1.1; proxy_set_header Connection ""; chunked_transfer_encoding off; proxy_pass http://minio:9000; ...