feat:增加rustfs代理

This commit is contained in:
2025-10-25 22:53:06 +08:00
parent 6329616f4b
commit f30035526a

View File

@@ -39,8 +39,8 @@ server {
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
} }
location /calibre { location /calibre/ {
proxy_pass http://host.docker.internal:8100; proxy_pass http://host.docker.internal:8100/;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
@@ -50,8 +50,16 @@ server {
client_max_body_size 500M; client_max_body_size 500M;
} }
location /easynode { location /rustfs/ {
proxy_pass http://host.docker.internal:8200; proxy_pass http://host.docker.internal:9100/;
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_set_header X-Forwarded-Proto $scheme;
}
location /easynode/ {
proxy_pass http://host.docker.internal:8200/;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
@@ -64,6 +72,8 @@ server {
location /blog-api/ { location /blog-api/ {
proxy_pass http://host.docker.internal:8082/; proxy_pass http://host.docker.internal:8082/;
client_max_body_size 10M;
} }
location /food-api/ { location /food-api/ {