{{.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
{{$.BaseURL}}/api/{{.Unit.Name}}/
{{- 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
{{range $k,$v := .}} {{end}}
Name Value
{{$k}}
{{$v}}

{{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
    {{range .QueryToken.Tokens}}
  • {{$.BaseURL}}/api/{{$.Unit.Name}}/?{{$.Unit.Authorization.QueryToken.GetParam}}={{.}}
  • {{end}}
{{end}} {{if .HeaderToken.Enable}}
Header token
in {{.HeaderToken.GetHeader}} header
{{end}} {{if .Basic.Enable}}
Basic
{{.Basic.Logins | join ", "}}
{{end}}
{{end}}
{{end}}
{{with .CronEntries}}
Schedules
{{range $index, $entry := .}} {{end}}
Name Spec
{{$entry.Spec.Label (print "#" $index)}} {{$entry.Spec.Spec}}
{{end}}
Try


Last 50 requests
{{range $.History 50}} {{end}}
ID Time Complete Attempts
{{.ID}} {{.Meta.CreatedAt.Format "02 Jan 06 15:04:05.000 MST"}} {{if .Meta.Complete}} {{.Meta.CompleteAt.Format "02 Jan 06 15:04:05.000 MST"}} {{else}} in progress {{end}} {{len .Meta.Attempts}}