Jeecg 配置minio
AI-摘要
JinzAI GPT
AI初始化中...
介绍自己
生成本文简介
推荐相关文章
前往主页
前往tianli博客
1. 构建业务服务器的规划
有前端服务器FRONT_SERVER和存储服务器STRAGE_SERVER
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
本文是原创文章,采用 CC BY-NC-ND 4.0 协议,完整转载请注明来自 Jinz
评论
匿名评论
隐私政策
你无需删除空行,直接评论以获取最佳展示效果