Skip to content

Commit

Permalink
Infra: proxy pass minio to port 444 (#4) [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
tanlin2013 committed Jun 15, 2022
1 parent 37a8c5b commit 7492b0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions mlflow-tracker/minio/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ services:
- mlflow
ports:
- "8080:443"
- "8888:444"
networks:
- frontend
volumes:
Expand Down
7 changes: 2 additions & 5 deletions mlflow-tracker/minio/nginx/mlflow.conf
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ server {

server {
# Define the server name, IP address, and/or port of the server
listen 443 ssl;
listen 444 ssl;
server_name do-doublets.phys.nthu.edu.tw;

# Define the specified charset to the “Content-Type” response header field
Expand All @@ -42,10 +42,7 @@ server {
ssl_certificate_key /etc/letsencrypt/live/do-doublets.phys.nthu.edu.tw/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;

location /minio/ {
# auth_basic "Restricted Content";
# auth_basic_user_file /etc/nginx/.htpasswd;
rewrite ^/minio/(.*)$ /$1 break;
location / {
proxy_pass http://minio:9001;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
Expand Down

0 comments on commit 7492b0b

Please sign in to comment.