Deployment Overview
AsterDrive is delivered as a single service:
- browser page
- public sharing page
- admin panel
- WebDAV
- file preview and WOPI entry
All are served by the same process.
The three most important deployment concerns are:
- keep the service running reliably
- preserve data correctly
- make uploads, WebDAV, and external openers work in your network environment
Confirm These Four Things Before Deployment
Section titled “Confirm These Four Things Before Deployment”They apply no matter which scenario path you take.
Data Directory
Section titled “Data Directory”These contents must survive restarts and upgrades:
data/config.toml- database
- local upload directory
If avatar upload is enabled, or if you configured additional local local storage policies, keep these too:
- the local directory corresponding to
avatar_dir(usuallydata/avatarby default) - any custom local storage root directories
The service also uses temporary directories at runtime:
data/.tmpdata/.uploads
These two directories usually do not need backup, but the local disk must have available space.
Access Method
Section titled “Access Method”For production launch, you must serve HTTPS through a reverse proxy, and keep:
[auth]bootstrap_insecure_cookies = falseIf this is only local or intranet HTTP first bootstrap, you may temporarily set it to true so the system initializes the browser Cookie HTTPS requirement as disabled.
After switching to HTTPS in production, change it back to enabled in the admin system settings.
If the site will be externally accessible, also confirm:
- The home page response headers include the browser page baseline
Content-Security-Policyreturned by AsterDrive, and the proxy has not removed it or overwritten it with an incompatible policy. Admin -> System Settings -> Site Configuration -> Public Site URLhas been set to the realhttps://origin. Add multiple public domains one by one.- If public registration, password recovery, or email rebinding will be enabled,
Admin -> System Settings -> Mail Deliveryhas sent a test email successfully.
WebDAV
Section titled “WebDAV”If Finder, Windows, or sync tools need access, consider these during deployment:
- WebDAV path
- reverse proxy
- upload size limits
Online Preview / WOPI
Section titled “Online Preview / WOPI”If you plan to open Office files through an external service, confirm these too:
Public Site URLis set to the realhttps://origin.Site Configuration -> Preview Applicationshas the corresponding opener configured.- The external Office / WOPI service can access the AsterDrive address represented by
Public Site URL. If browser cross-origin calls to AsterDrive APIs are blocked, allow the corresponding origin underNetwork Access.
Storage Location
Section titled “Storage Location”- Local disk: simplest deployment.
- S3 / MinIO: suitable for object storage scenarios.
What First Startup Does Automatically
Section titled “What First Startup Does Automatically”After the service starts successfully, it automatically completes these preparations:
- generates the default
data/config.toml - connects to the database and updates the database structure automatically
- neither single nor cluster creates a storage policy automatically; both enter
needs_storageafter the first administrator is created - when the administrator makes the first suitable policy the default, AsterDrive atomically creates or reconciles the default policy group and assigns unassigned administrators; single may use local storage, while cluster requires storage reachable by every Primary
- initializes default system setting entries
- starts mail dispatch, background task dispatch, periodic cleanup, and low-level file consistency check tasks
Validate These After Launch
Section titled “Validate These After Launch”The full checklist is in First-Start Checklist.
At minimum, verify these after deployment:
/healthand/health/readyreturn normally.- The home page opens normally and login works.
- You can create a folder and upload a file.
- The admin panel opens.
Validate other role-specific areas (WebDAV, WOPI, mail, trash, and so on) according to the corresponding sections in the First-Start Checklist.
After Deployment: The Operations Lifecycle
Section titled “After Deployment: The Operations Lifecycle”Launch is only the beginning. These topics belong to day-to-day operations and are not expanded inside the deployment scenario pages:
- Production Launch Checklist: full acceptance before going live
- Backup and Restore: backup strategy, restore order, and post-restore validation
- Upgrade and Version Migration: upgrade paths and version notes
- Monitoring and Grafana: Prometheus metrics and dashboards
- Capacity Planning: estimating file count, database size, memory, and temporary disk
- Troubleshooting: locate problems by symptom
- Operations CLI: doctor, offline configuration, node enrollment, and database migration