Cloudflare R2
Amazon S3
DDA allows you to attach your own Amazon S3 server. Doing this allows you to have full control over your storage and bandwidth settings. This means that you will be in control of the pricing for those settings too, while our app is simply the control tool between your store and your server.
If you’re selling large digital files on Shopify, then this is one of the best routes to take.
Si tratta di impostazioni avanzate. Modificatele solo se avete familiarità con AWS e S3.
Di quale piano ho bisogno per questa funzione?
You will need the Growth plan or above. Already installed DDA? Upgrade here.
Collegare il proprio S3 significa controllare i costi di archiviazione e di larghezza di banda tramite il proprio account Amazon.
How to do it
Passo 1 - Accedere alla pagina "Impostazioni".
Una volta entrati nella pagina "Impostazioni", fare clic sul pulsante "Configura S3 personalizzato".
About the settings
Rename my files to keep their name unique?
This will rename files that are uploaded with the same name as other files in your S3, so they don’t overwrite the files.
The names will be renamed with a completely different names of random characters using UUID4. This is a time-based encoding.
Delete files in S3 when removed from the App?
Enabling this setting will delete the files from your S3 if you delete the files inside the app. If you leave it disabled, then deleting the files in our app will not do anything to your S3 files.
Fase 2 - Creare un secchio
Andare su AWS e creare il bucket. Immettere il nome del bucket e la regione.
Passo 3 - Configurare il bucket, copiare e incollare CORS
If you are using AWS, go to the Permissions tab > scroll down to CORS and click ‘Edit‘.
Copy the CORS config text from the DDA S3 page in the app, and paste it into your S3 settings.
Incollare la configurazione CORS nella casella sottostante, quindi premere "Salva modifiche":
Step 4 – Set up API access to the bucket & assign permissions
Aggiungere un utente per generare le chiavi API.
Assegnare all'utente le autorizzazioni per gestire il bucket S3.
There have been reports that AWS has changed the way permissions are assigned to a user, which could be more complicated.
Fase 5 - Copiare e incollare le chiavi API nell'applicazione
Vi verranno fornite le chiavi API:
Copy and paste the Key and the Secret from AWS to the DDA app.
- The ‘Access key ID‘ goes into ‘Access Key‘
- The ‘Secret access key‘ goes into ‘Secret Key‘.
Passo 6 - Copiare e incollare i dettagli del secchio
Trovate il nome del bucket e la regione nell'URL (sottolineati in rosso) e copiateli nell'applicazione.
Paste them as instructed. Numbers are located in the image above:
- The bucket name (1) goes into ‘Bucket‘
- The region (2) goes into ‘Region‘
Quindi premere "Salva".
Passo 7 - Prova di caricamento
Per verificare il caricamento di una risorsa, andare alla pagina "Risorse" e fare clic su "Carica nuova risorsa".
Se tutto viene caricato senza alcun avviso o problema, il caricamento è avvenuto con successo. Se si verificano errori, ricontrollare i passaggi per assicurarsi di aver eseguito tutto correttamente.
Verificare che il file sia stato caricato controllando il bucket S3.
FAQ
What happens if I disconnect the S3 from the app?
If you disconnect the S3, the files will still appear in the app. To completely remove the files from the app, you will need to highlight them all from the Assets page and remove them.
Please check if you had enabled the option “Delete files in S3 when removed from the App?” when you originally connected it because the app may delete all of your files from the S3 if you have this enabled.
Can I change the S3?
Yes, all you need to do is disconnect the old one and then reconnect the new S3. All of your files from the old S3 will still remain in the account.
If you want to remove the old files, you need to go to the “Assets” page, select them all and click remove. You can do this after you have connected the new S3. Just make sure that you will be able to distinguish which file is on the right S3. It would be easy to tell if you checked the “Created” date on the “Assets” page. This will filter the list to show the newest or oldest first.