Created
March 27, 2025 22:57
-
-
Save mqnoy/3ea7ddf8914c96e3294262afb60ab877 to your computer and use it in GitHub Desktop.
haproxy_minio
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
frontend https_front | |
bind *:443 ssl crt /etc/haproxy/certs/minio.pem | |
mode http | |
option forwardfor | |
http-request add-header X-Forwarded-Proto https if { ssl_fc } | |
acl is_console path_beg /console | |
use_backend minio_console if is_console | |
default_backend minio_api | |
backend minio_api | |
mode http | |
server minio1 127.0.0.1:9000 check | |
backend minio_console | |
mode http | |
http-request replace-path ^/console(/.*)?$ \1 | |
server minio_console 127.0.0.1:9001 check |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment