Demo1
location /minio-ng {
proxy_pass http://172.17.16.66:9000/;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
location /fdfs-ng {
proxy_pass http://172.17.16.66:8888/;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
Demo2
FROM nginx:1.25.5
MAINTAINER WinJay.CN
LABEL description="Litsoft Algorithm Web Project"
LABEL version="1.1"
USER root
# 处理前端项目站点刷新后报404错误
RUN sed -i '10i\ proxy_read_timeout 300s;\n try_files $uri $uri/ /index.html;' /etc/nginx/conf.d/default.conf
Demo3
sed -i '43i\ location ~ ^/minio-ng(/.*)$ {\n proxy_pass http://172.17.16.66:9000$1;\n proxy_redirect off;\n proxy_set_header Host $host;\n proxy_set_header X-Real-IP $remote_addr;\n }\n\n location /fdfs-ng {\n proxy_pass http://172.17.16.66:8888/;\n proxy_redirect off;\n proxy_set_header Host $host;\n proxy_set_header X-Real-IP $remote_addr;\n }' 002.Pvt-Info.conf
评论区