Re: RGW with keystone and dns-style buckets

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi folks,

i got it to work using haproxy just put some stuff into the frontend
to rewrite the url from domainstyle with '_' to pathstyle with ':'

 acl dnsstyle_buckets hdr_end(host) -i .object.domain
 capture request header User-Agent len 256
 capture request header Host len 128
 http-request set-var(req.bucketname)
hdr(host),regsub(.object.domain,),regsub(_,:) if dnsstyle_buckets
 http-request set-var(req.bucketname)
hdr(host),map(/etc/haproxy/map/buckets.map)
 http-request set-header X-Debug-Bucket %[var(req.bucketname)] if {
var(req.bucketname) -m found }
 http-request set-uri
/%[var(req.bucketname)]%[path,regsub(/$,/index.html)] if {
var(req.bucketname) -m found }
 http-request set-header Host object.domain if { var(req.bucketname)
-m found }
 use_backend stats if stats
 use_backend ceph-mgr if ceph-mgr
 default_backend ceph-rgw

hope it will help others too
Ansgar

Am Mo., 10. Jan. 2022 um 14:52 Uhr schrieb Ansgar Jazdzewski
<a.jazdzewski@xxxxxxxxxxxxxx>:
>
> Hi folks,
>
> i try to get dns-style buckets running and stumbled across an issue with tenants
>
> I can access the bucket like https://s3.domain/<userid>:<bucket> but I
> did not find a way to do it with DNS-Style something like that
> https://<userid>_<bucket>.s3.domain !
>
> Do I miss something in the documentation?
>
> Thanks for your help!
> Ansgar
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux