vue nginx配置
server { listen 86; server_name localhost; client_max_body_size 500m; location / { proxy_pass http://192.168.1.145:8080; } location ^~ /api { proxy_pass http://192.168.1.145:4075/api; proxy_set_header Host $http_host; proxy_set_header X-Real-Port $remote_port; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-scheme $scheme; proxy_set_header x-agent $http_user_agent; add_header backendIP $upstream_addr; proxy_headers_hash_max_size 51200; proxy_headers_hash_bucket_size 6400; }
----淡定从容,宁静致远----