{{template "base" .}} {{define "title"}}{{.Title}}{{end}} {{define "extra_css"}}
{{end}} {{define "page_body"}}
{{if .IsAdd}}Add a new user{{else}}Edit user{{end}}
{{if .Error}}
{{.Error}}
{{end}}
Username
Status
Active
Inactive
Expiration Date
Password
{{if not .IsAdd}}
If empty the current password will not be changed
{{end}}
Public keys
{{range .User.PublicKeys}}{{.}} {{end}}
One public key or SSH user certificate per line
Denied protocols
{{range $protocol := .ValidProtocols}}
{{$protocol}}
{{end}}
Denied login methods
{{range $method := .ValidSSHLoginMethods}}
{{$method}}
{{end}}
Permissions
{{range $validPerm := .ValidPerms}}
{{$validPerm}}
{{end}}
Sub dirs permissions
{{range $dir, $perms := .User.Permissions -}} {{if ne $dir "/" -}} {{$dir}}::{{range $index, $p := $perms}}{{if $index}},{{end}}{{$p}}{{end}} {{- end}} {{- end}}
One exposed virtual directory path per line as /dir::perms, for example /somedir::list,download
Home Dir
Virtual folders
{{range $index, $mapping := .User.VirtualFolders -}} {{$mapping.VirtualPath}}::{{$mapping.MappedPath}}::{{$mapping.QuotaFiles}}::{{$mapping.QuotaSize}} {{- end}}
One mapping per line as vpath::fspath::[quota_files]::[quota_size(bytes)], for example /vdir::/home/adir or /vdir::C:\adir::10::104857600. Quota -1 means included inside user quota. Ignored for non local filesystems
Quota files
0 means no limit
Quota size (bytes)
0 means no limit
Max file upload size (bytes)
0 means no limit
Max sessions
0 means no limit
Bandwidth UL (KB/s)
0 means no limit
Bandwidth DL (KB/s)
0 means no limit
UID
GID
Denied IP/Mask
Comma separated IP/Mask in CIDR format, for example "192.168.1.0/24,10.8.0.100/32"
Allowed IP/Mask
Comma separated IP/Mask in CIDR format, for example "192.168.1.0/24,10.8.0.100/32"
Denied file patterns
{{range $index, $filter := .User.Filters.FilePatterns -}} {{if $filter.DeniedPatterns -}} {{$filter.Path}}::{{range $idx, $p := $filter.DeniedPatterns}}{{if $idx}},{{end}}{{$p}}{{end}} {{- end}} {{- end}}
One exposed virtual directory per line as /dir::pattern1,pattern2, for example /subdir::*.zip,*.rar
Allowed file patterns
{{range $index, $filter := .User.Filters.FilePatterns -}} {{if $filter.AllowedPatterns -}} {{$filter.Path}}::{{range $idx, $p := $filter.AllowedPatterns}}{{if $idx}},{{end}}{{$p}}{{end}} {{- end}} {{- end}}
One exposed virtual directory per line as /dir::pattern1,pattern2, for example /somedir::*.jpg,*.png
Denied file extensions
{{range $index, $filter := .User.Filters.FileExtensions -}} {{if $filter.DeniedExtensions -}} {{$filter.Path}}::{{range $idx, $p := $filter.DeniedExtensions}}{{if $idx}},{{end}}{{$p}}{{end}} {{- end}} {{- end}}
One exposed virtual directory per line as /dir::extension1,extension2, for example /subdir::.zip,.rar. Deprecated, use file patterns
Allowed file extensions
{{range $index, $filter := .User.Filters.FileExtensions -}} {{if $filter.AllowedExtensions -}} {{$filter.Path}}::{{range $idx, $p := $filter.AllowedExtensions}}{{if $idx}},{{end}}{{$p}}{{end}} {{- end}} {{- end}}
One exposed virtual directory per line as /dir::extension1,extension2, for example /somedir::.jpg,.png. Deprecated, use file patterns
Storage
Local
Local encrypted
AWS S3 (Compatible)
Google Cloud Storage
Azure Blob Storage
Passphrase
Bucket
Region
Access Key
Access Secret
Storage Class
Endpoint
UL Part Size (MB)
The buffer size for multipart uploads. Zero means the default (5 MB). Minimum is 5
UL Concurrency
How many parts are uploaded in parallel. Zero means the default (2)
Key Prefix
Similar to a chroot for local filesystem. Cannot start with "/". Example: "somedir/subdir/".
Bucket
Credentials file
Add or update credentials from a JSON file
Storage Class
Automatic credentials
Key Prefix
Similar to a chroot for local filesystem. Cannot start with "/". Example: "somedir/subdir/".
Container
Account Name
Account Key
SAS URL
Endpoint
Access Tier
Default
Hot
Cool
Archive
UL Part Size (MB)
The buffer size for multipart uploads. Zero means the default (4 MB)
UL Concurrency
How many parts are uploaded in parallel. Zero means the default (2)
Key Prefix
Similar to a chroot for local filesystem. Cannot start with "/". Example: "somedir/subdir/".
Use Azure Blob emulator
Additional info
{{.User.AdditionalInfo}}
Free form text field
{{if not .IsAdd}}
Disconnect the user after the update
This way you force the user to login again, if connected, and so to use the new configuration
{{end}}
Submit
{{end}} {{define "extra_js"}} {{end}}