Hotfix nginx
This commit is contained in:
2
.env
2
.env
@@ -23,7 +23,7 @@ MINIO_ROOT_PASSWORD=CHANGEME
|
|||||||
MINIO_BUCKET=aviation
|
MINIO_BUCKET=aviation
|
||||||
MINIO_PROTOCOL=http
|
MINIO_PROTOCOL=http
|
||||||
MINIO_PORT=9000
|
MINIO_PORT=9000
|
||||||
MINIO_PORT_INTERNAL=9001
|
MINIO_INTERNAL_PORT=9001
|
||||||
MINIO_BROWSER_REDIRECT_URL=${NGINX_PROTOCOL}://${NGINX_HOST}:${NGINX_HTTP_PORT}/minio/
|
MINIO_BROWSER_REDIRECT_URL=${NGINX_PROTOCOL}://${NGINX_HOST}:${NGINX_HTTP_PORT}/minio/
|
||||||
|
|
||||||
UI_PORT=3000
|
UI_PORT=3000
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ services:
|
|||||||
- minio:/data
|
- minio:/data
|
||||||
ports:
|
ports:
|
||||||
- "${MINIO_PORT:-9000}:9000"
|
- "${MINIO_PORT:-9000}:9000"
|
||||||
- "${MINIO_PORT_INTERNAL:-9001}:9001"
|
- "${MINIO_INTERNAL_PORT:-9001}:9001"
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
profiles:
|
profiles:
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ server {
|
|||||||
server_name ${NGINX_HOST};
|
server_name ${NGINX_HOST};
|
||||||
|
|
||||||
location /api/ {
|
location /api/ {
|
||||||
proxy_pass http://${NGINX_INTERNAL_HOST}:5000/api/;
|
proxy_pass http://${NGINX_INTERNAL_HOST}:${API_PORT}/api/;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
@@ -13,7 +13,7 @@ server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
location /minio/ {
|
location /minio/ {
|
||||||
proxy_pass http://${NGINX_INTERNAL_HOST}:9001/;
|
proxy_pass http://${NGINX_INTERNAL_HOST}:${MINIO_INTERNAL_PORT}/;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
@@ -22,7 +22,7 @@ server {
|
|||||||
|
|
||||||
# Reverse proxy for the UI and default catch-all
|
# Reverse proxy for the UI and default catch-all
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://${NGINX_INTERNAL_HOST}:3000/;
|
proxy_pass http://${NGINX_INTERNAL_HOST}:${UI_PORT}/;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ server {
|
|||||||
# ssl_prefer_server_ciphers on;
|
# ssl_prefer_server_ciphers on;
|
||||||
|
|
||||||
location /api/ {
|
location /api/ {
|
||||||
proxy_pass http://${NGINX_INTERNAL_HOST}:5000/api/;
|
proxy_pass http://${NGINX_INTERNAL_HOST}:${API_PORT}/api/;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
@@ -33,7 +33,7 @@ server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
location /minio/ {
|
location /minio/ {
|
||||||
proxy_pass http://${NGINX_INTERNAL_HOST}:9001/;
|
proxy_pass http://${NGINX_INTERNAL_HOST}:${MINIO_INTERNAL_PORT}/;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
@@ -42,7 +42,7 @@ server {
|
|||||||
|
|
||||||
# Reverse proxy for the UI and default catch-all
|
# Reverse proxy for the UI and default catch-all
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://${NGINX_INTERNAL_HOST}:3000/;
|
proxy_pass http://${NGINX_INTERNAL_HOST}:${UI_PORT}/;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
|||||||
Reference in New Issue
Block a user