{{define "admin_storage.html"}}{{template "base" .}}{{end}} {{define "content"}}

Operator console

{{.Data.PageTitle}}

Local storage is always active. Remote backends are proxied through Warpbox.

{{template "icon-plus-circle" .}}Add storage
{{if .Data.Notice}}

{{.Data.Notice}}

{{end}} {{if .Data.Error}}

{{.Data.Error}}

{{end}}
Run cleanup now Remove expired boxes and boxes that reached their download limit.
Generate thumbnails now Scan active boxes and create missing image or video thumbnails.
Verify storage now Test every enabled backend and update its last-test status.
{{range .Data.Storage}}
{{if eq .Config.Type "local"}}{{template "icon-hard-drive" $}} {{else if eq .Config.Type "sftp"}}{{template "icon-database" $}} {{else if eq .Config.Type "smb"}}{{template "icon-folder" $}} {{else if eq .Config.Type "webdav"}}{{template "icon-cloud-sync" $}} {{else}}{{template "icon-cloud-upload" $}}{{end}}
{{.Config.Name}}
{{if eq .Config.Provider "contabo"}}Contabo{{else if eq .Config.Type "sftp"}}SFTP{{else if eq .Config.Type "smb"}}Samba{{else if eq .Config.Type "webdav"}}WebDAV{{else if eq .Config.Type "s3"}}S3{{else if eq .Config.Type "local"}}Local files{{else}}{{.Config.Type}}{{end}} {{if eq .Config.ID "local"}}Required {{else if .Config.Enabled}}Enabled {{else}}Disabled{{end}} {{if .InUseReason}}In use{{end}} {{if .UsageLabel}}{{.UsageLabel}}{{end}}
{{if .CanSpeedTest}} Testing {{else}}
{{end}} {{if ne .Config.ID "local"}} Edit
{{end}}
{{if eq .Config.Type "local"}}
Path{{.Config.LocalPath}}
{{else if or (eq .Config.Type "s3") (eq .Config.Provider "contabo")}} {{if .Config.Endpoint}}
Endpoint{{.Config.Endpoint}}
{{end}} {{if .Config.Bucket}}
Bucket{{.Config.Bucket}}
{{end}} {{if .Config.Region}}
Region{{.Config.Region}}
{{end}} {{if .Config.AccessKey}}
Access key{{.Config.AccessKey}}
{{end}} {{else if eq .Config.Type "sftp"}} {{if .Config.Host}}
Host{{.Config.Host}}{{if .Config.Port}}:{{.Config.Port}}{{end}}
{{end}} {{if .Config.Username}}
Username{{.Config.Username}}
{{end}} {{if .Config.RemotePath}}
Remote path{{.Config.RemotePath}}
{{end}} {{else if eq .Config.Type "smb"}} {{if .Config.Host}}
Host{{if .Config.Domain}}{{.Config.Domain}}\{{end}}{{.Config.Username}}@{{.Config.Host}}/{{.Config.Share}}
{{end}} {{if .Config.RemotePath}}
Remote path{{.Config.RemotePath}}
{{end}} {{else if eq .Config.Type "webdav"}} {{if .Config.Endpoint}}
URL{{.Config.Endpoint}}
{{end}} {{if .Config.Username}}
Username{{.Config.Username}}
{{end}} {{if .Config.RemotePath}}
Remote path{{.Config.RemotePath}}
{{end}} {{end}} {{if not (.Config.LastTestedAt.IsZero)}}
Last test {{.Config.LastTestedAt.Format "Jan 2, 15:04"}} ยท {{if .Config.LastTestSuccess}}Passed{{else}}{{if .Config.LastTestError}}{{.Config.LastTestError}}{{else}}Failed{{end}}{{end}}
{{end}}
{{end}}
{{end}}