পণ্যের অংশে চলে যান
LCPanelলাইসেন্স সেন্টার প্যানেল
BXP BoxPuff টি অধ্যায়

BoxPuff ডকুমেন্টেশন

DigitalOcean Spaces ফাইল স্টোরেজ

DigitalOcean Spaces-কে ফাইল সার্ভারের ধরন হিসেবে যোগ করে: যেকোনো রিজিয়নের Space ও Spaces কী, সরাসরি ডাউনলোড ও আপলোড। প্রিমিয়াম।

প্লাগইন হালনাগাদ ৬ নভে ২০২৬ ৪০ / ৫০

The DigitalOcean Spaces plugin adds DigitalOcean Spaces as a file server type. A Space is DigitalOcean's S3-compatible object storage: the plugin fills in its endpoint pattern and the list of regions, you type a Spaces access key and the name of the Space, and the core's S3 driver does the rest - signed direct downloads, direct uploads from the browser, priority, geo and account-type targeting as for any bucket server.

Who it is for

Sites already hosted on DigitalOcean, where a Space in the same region keeps the storage close to the droplet and the traffic on one bill, and anyone who wants simple, flat-priced object storage with a CDN built in.

Switching it on

A premium plugin, key storage-digitalocean. Buy it on lcpanel.com, open Admin → Configuration → License and press Check again now, then switch the plugin on at Admin → Extensions → Plugins (the Manage Plugins page). Its settings page holds one How to use note: the plugin only adds the server type.

Adding the server

Go to Admin → Infrastructure → File Servers, press Add File Server, and on the Add Storage Server page choose DigitalOcean Spaces under Server Type. The page reads: A Space in any DigitalOcean region with a Spaces access key. The Space name is the bucket.

FieldWhat to type
Access Key, Secret KeyA Spaces access key pair from your DigitalOcean account.
BucketThe name of the Space.
RegionThe Space's region: nyc1, nyc2, nyc3 (default), sgp1, lon1, ams1, ams2, ams3, fra1, tor1, sfo1, sfo2, sfo3, blr1 or syd1.
Endpoint{region}.digitaloceanspaces.com; the region is put in for you.
Path-style URLsOff.
Key PrefixOptional folder inside the Space, e.g. files/.
Direct DownloadsYes sends visitors to the Space with a signed link; No streams through the site.
Direct UploadsYes lets browsers upload straight to the Space in parallel pieces.
Public / CDN URL (optional)The Space's CDN endpoint, if you switched the CDN on; public links are served from there.
Signed Link LifetimeSeconds a signed link is good for (3600).

Give it a Server Label and a Status, look through CDN Support, Storage Options (Max Storage, Server Priority), Geo Targeting and Account Type Targeting, and press Save and test. A green message means the keys and the Space are right.

Direct uploads

For Direct Uploads the Space needs a CORS rule allowing GET, PUT, POST, HEAD from your site with the ETag header exposed. The exact JSON is shown under CORS rule the bucket needs for direct uploads on the server form and on the S3 Connection Test page of the free Amazon S3 File Storage plugin; add it in the Space's settings. Without it the uploader quietly uses the site's own road (Uploads).

Downloads and the CDN

A Space can have DigitalOcean's CDN in front of it. Put that address in Public / CDN URL (optional) and public links are served from the CDN; signed links still come from the Space itself. Site Settings → File Downloads → Direct bucket links only for unlimited speed decides whether members on a speed-limited package are streamed through the site instead (Downloads).

Tips

  • Pick the Space's region to match your droplet's region when the site also streams files through itself: the hop stays inside the data centre.
  • A new Space receives uploads only when Site Settings → File Uploads chooses it (selection method, Default file server, or a Server Priority); see File servers.
  • Keep the Space private; the site signs every download link.
  • The used-space figures on the File Servers page are refreshed by the cron every five minutes (Scheduled jobs).
এটি কি কাজে লেগেছে?
এই অধ্যায়টি শেয়ার করুন