1. 构建业务服务器的规划

有前端服务器FRONT_SERVER和存储服务器STRAGE_SERVER

%%{init: {"flowchart": {"htmlLabels": false}} }%% flowchart LR subgraph "`**FRONT_SERVER**:5.4.113.31`" a("`Jeecg`") --> b{{"`**nginx** 88:80`"}} end subgraph "`**STORAGE_SERVER**:5.4.115.24`" c("`**minio** 9000:9000 9101:9001`") end b --> c

2. 配置文件

2.1 nginx配置文件

user  nginx;
worker_processes  1;

error_log  /var/log/nginx/error.log notice;
pid        /var/run/nginx.pid;


events {
    worker_connections  1024;
}


http {
    server {
    	listen 80;
	server_name localhost;
	# alias /usr/share/nginx/html;
	location /img/ {
	    alias /usr/share/nginx/html/img/;	
	    try_files $uri $uri/ =404;
	    autoindex on;
	}
	location / {
            proxy_set_header Host $http_host;
	    proxy_pass http://5.4.113.24:9000;
        }
    }

    include       /etc/nginx/mime.types;
    default_type  application/octet-stream;

    #  log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
    #                  '$status $body_bytes_sent "$http_referer" '
    #                  '"$http_user_agent" "$http_x_forwarded_for"';

    # access_log  /var/log/nginx/access.log  main;

    sendfile        on;
    #tcp_nopush     on;

    keepalive_timeout  65;

    #gzip  on;

    include /etc/nginx/conf.d/*.conf;

2.2 Jeecg application-prod.yml配置

uploadType: minio  
# minio文件上传
  minio:
    minio_url: http://5.4.113.31:88
    minio_name: user
    minio_pass: passwd
    bucketName: jeecg