Skip to content

Instantly share code, notes, and snippets.

@mqnoy
Created March 27, 2025 22:57
Show Gist options
  • Select an option

  • Save mqnoy/3ea7ddf8914c96e3294262afb60ab877 to your computer and use it in GitHub Desktop.

Select an option

Save mqnoy/3ea7ddf8914c96e3294262afb60ab877 to your computer and use it in GitHub Desktop.

Revisions

  1. mqnoy created this gist Mar 27, 2025.
    18 changes: 18 additions & 0 deletions haproxy.cfg
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    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