{{.Unit.Name}}
{{with .Unit}}
{{if .Private}}🏠
{{else if .Secured}}🛡️
{{end}}
{{if gt (len .Cron) 0}}
⏲
{{end}}
{{end}}
Configuration
{{- if .Unit.Private}}
- Private
- yes - not exposed over API
{{- else}}
- API endpoint
-
{{- end}}
- Mode
- {{.Unit.Mode}}
- Concurrency
- {{.Unit.Workers}}
- Attempts
- {{.Unit.Attempts}}
- Interval
- {{.Unit.Interval}}
{{if eq .Unit.Mode "bin"}}
- Timeout
-
{{with .Unit.Timeout}}
{{.}}
{{else}}
∞
{{end}}
- Graceful timeout
-
{{with .Unit.GracefulTimeout}}
{{.}}
{{else}}
∞
{{end}}
{{end}}
- Max request size
-
{{with .Unit.MaxRequest}}
{{.}}
{{else}}
∞
{{end}}
- Working directory
-
{{with .Unit.WorkDir}}
static
{{.}}
{{else}}
dynamic
{{end}}
{{if or (eq .Unit.Mode "bin") (eq .Unit.Mode "cgi")}}
- Command
- {{.Unit.Command}}
- Shell
- {{.Unit.Shell}}
{{end}}
{{with .Unit.Environment}}
Environment
Name |
Value |
{{range $k,$v := .}}
{{$k}}
|
{{$v}} |
{{end}}
{{end}}
{{if $.Unit.Secured}}
Authorization
{{with .Unit.Authorization}}
{{if .JWT.Enable}}
- JWT
- in
{{.JWT.GetHeader}}
header
{{end}}
{{if .QueryToken.Enable}}
- Query token
- in
{{.QueryToken.GetParam}}
param
{{end}}
{{if .HeaderToken.Enable}}
- Header token
- in
{{.HeaderToken.GetHeader}}
header
{{end}}
{{if .Basic.Enable}}
- Basic
- {{.Basic.Logins | join ", "}}
{{end}}
{{end}}
{{end}}