LINUX.ORG.RU

История изменений

Исправление SpaceRanger, (текущая версия) :

Всё починил, вот рабочий конфиг, если вдруг кто будет с тпохожей проблемой.

frontend front_ceph_dashboard_http
        bind *:80
        mode http
        option httplog
        http-request redirect scheme https code 301 if !{ ssl_fc }

frontend front_ceph_dashboard_ssl
        mode http
        bind *:443 ssl crt /etc/ssl/private/ceph.prod.test.pem
        option forwardfor

        use_backend test-bucket if { hdr_beg(Host) -i test-bucket. } || { path /test-bucket } 
        default_backend back_ceph_dashboard_ssl

backend test-bucket
        balance roundrobin
        mode http
        server ceph1 10.50.8.170:80 check
        server ceph2 10.50.8.171:80 check
        server ceph3 10.50.8.172:80 check

backend back_ceph_dashboard_ssl
        mode http
        option httpchk GET /
        http-check expect status 200
        server ceph1 10.50.8.170:8080 check
        server ceph2 10.50.8.171:8080 check
        server ceph3 10.50.8.172:8080 check

Исходная версия SpaceRanger, :

Всё починил, вот рабочий конфиг, если вдруг кто будет с тпохожей проблемой.

#frontend ceph_S3
#       bind 10.50.8.190:80
#       use_backend ceph_S3 if { path /test-bucket } || { path_beg /test-bucket/ }

frontend front_ceph_dashboard_http
        bind *:80
        mode http
        option httplog
        http-request redirect scheme https code 301 if !{ ssl_fc }

frontend front_ceph_dashboard_ssl
        mode http
        bind *:443 ssl crt /etc/ssl/private/ceph.prod.test.pem
#       option tcplog
        option forwardfor
#       use_backend %[req.hdr(Host),lower]
#       acl sub1 hdr_sub(host) -i ceph.prod.test/test-bucket

        use_backend test-bucket if { hdr_beg(Host) -i test-bucket. } || { path /test-bucket } || { path_beg /test-bucket/ }
        default_backend back_ceph_dashboard_ssl

backend test-bucket
        balance roundrobin
        mode http
#       http-request replace-path /test-bucket(/)?(.*) /\2
        server ceph1 10.50.8.170:80 check
        server ceph2 10.50.8.171:80 check
        server ceph3 10.50.8.172:80 check

backend back_ceph_dashboard_ssl
        mode http
        option httpchk GET /
        http-check expect status 200
        server ceph1 10.50.8.170:8080 check
        server ceph2 10.50.8.171:8080 check
        server ceph3 10.50.8.172:8080 check