Garage object storage

Has anyone been able to setup and use garage (https://garagehq.deuxfleurs.fr/) as object storage for their instance? I have some questions about the CORS settings described here. Apps (Nextcloud, Peertube...) | Garage HQ

How am I supposed to set up those two aws endpoint commands? aws --endpoint http://s3.garage.localhost s3api put-bucket-cors --bucket peertube-playlists --cors-configuration $CORS

Do I need to input my instance URL here?