Καλημέρες, δουλεύει κανένας με remote files hostin...
# chat
e
Καλημέρες, δουλεύει κανένας με remote files hosting? Σε amazon S3 για παράδειγμα, ή custom setup με MinIO?
k
εγώ, τα είχα σε s3 και είχα custom setup με minio σε ddev
e
Για πες εμπειρίες
έκανες πλήρη αντικατάσταση του public folder?
k
το ήθελα σε webform uploads ώστε να τρέχει στον s3 antivirus
και έβαλα storage από private που το είχα στο dev σε s3
στην αρχή είχα ένα demo s3 account και απλά έπαιξε
μετά έβαλα minio για να μη χρησιμοποιώ το demo account καθώς θέλει credit card για να ανοίξεις ένα demo
αν θέλεις σου στέλνω το docker-compose.minio.yaml
για ddev
e
με ενδιαφέρει πιο πολύ η εμπειρία χρήσης του drupal module
αξιοπιστία κλπ
k
απλά παίζει
e
μάλλον πάμε για full αντικατάσταση του public file system με s3 bucket
k
ένα θέμα είχα μόνο νομίζω κατσε να θυμηθώ τι
έφτιαξα ένα πολύ απλό controller για file download, αλλά δε θυμάμαι για ποιο λόγο
έχω ένα κώδικα:
Copy code
// If the file schema is s3:// then provide an internal download link so that
// the file stream wrapper is authenticated via the S3 module.
if (StreamWrapperManager::getScheme($file->getFileUri()) == 's3') {
  $download_url_options = ['attributes' => ['type' => $mime_type . '; length=' . $file->getSize()]];
  $download_url = new Url('modulename.file_download', ['file' => $file->id()], $download_url_options);
  $variables['link'] = Link::fromTextAndUrl($link_text, $download_url)->toRenderable();
}
σε μια hook_preprocess_file_link
e
Ευχαριστώ 😊
k
οπότε πολύ καλή εμπειρία. Πάνω που έκανα research για να κάνω estimation το task το έφτιαξα στο 100%