没研究过Nginx,求大佬教教
upstream halo {
server 172.19.0.3:8090;
}
server {
listen 80;
listen [::]:80;
server_name xxxxxx.com;
client_max_body_size 1024m;
location / {
proxy_pass http://halo;
proxy_set_header HOST $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}