Skip to content

Instantly share code, notes, and snippets.

@mqnoy
Created March 27, 2025 22:57
Show Gist options
  • Save mqnoy/3ea7ddf8914c96e3294262afb60ab877 to your computer and use it in GitHub Desktop.
Save mqnoy/3ea7ddf8914c96e3294262afb60ab877 to your computer and use it in GitHub Desktop.
haproxy_minio
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