sausin / laravel-ovh

Wrapper for OVH Object Storage integration with laravel
MIT License
37 stars 12 forks source link

Troubles with configuration #89

Closed vwasteels closed 1 year ago

vwasteels commented 1 year ago

Hello there,

Thanks for this usefull package :)

I am stucked with configuration, in my .env file , this is what I got for now :

OS_PROJECT_ID=<the OS_TENANT_ID value from the openrc.sh file>
OS_REGION_NAME=GRA11
# OS_USER_DOMAIN_NAME
OS_USERNAME=<the OS_USERNAME from the openrc.sh file>
OS_PASSWORD=<taken from the OVH interface directly (not present in the .sh file) >
OS_CONTAINER_NAME=<taken from the OVH interface too>

I keep receiving this error when I do php artisan ovh:set-temp-url-key :

 Endpoint URL could not be found in the catalog for this service.
Name: swift
Type: object-store
Region: GRA11
URL type: public

Any idea on this ? thank you

Also, I did not put the OS_TENANT_NAME value from the .sh file, since there is no OS_PROJECT_NAME corresponding in the configuration file you showed in README , but I might be missing something there too...

vwasteels commented 1 year ago

concerning the Username, I read this in the code :

    /**
     * Returns the Project Username.
     *
     * @return string
     */
    protected string $username;

So should I set it to : OS_USERNAME or OS_TENANT_NAME ?

vwasteels commented 1 year ago

Ok I got it working ,

Problem was that the S3 API is not handled by this plugin, you need to choose "Standard Object Storage - Swift API"

Screenshot -  2022-12-12 à 10 43 39

I created a new bucket and now it works !!