server { listen 80 default_server; listen [::]:80 default_server; root /usr/share/nginx/html; index index.html; server_name _; client_max_body_size 500M; location /blog/ { proxy_pass http://host.docker.internal:82/; 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 /blog-press/ { proxy_pass http://host.docker.internal:86/; 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 /sweet-hut/ { proxy_pass http://host.docker.internal:83/; 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 /blog-admin/ { proxy_pass http://host.docker.internal:84/; 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 /food-hub/ { proxy_pass http://host.docker.internal:85/; 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 /calibre/ { proxy_pass http://host.docker.internal:8100/; 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; proxy_set_header X-Script-Name /calibre; client_max_body_size 500M; } location /rustfs/ { 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 /drawio/ { proxy_pass http://host.docker.internal:8201/; 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 /webdav/ { proxy_pass http://host.docker.internal:5005/; 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 /home-api/ { proxy_pass http://host.docker.internal:8081/; } location /blog-api/ { proxy_pass http://host.docker.internal:8082/; client_max_body_size 10M; } location /food-api/ { proxy_pass http://host.docker.internal:8083/; } location /alist-api/ { proxy_pass http://host.docker.internal:5244/; } location / { try_files $uri $uri/ =404; } }