# ID: {{.ID}} - Domain: {{.Domain.ID}} - Profil: {{.Domain.Profil.ID}} # Login: {{.Domain.Profil.Login.ID}} -> {{.Domain.Profil.Login.Username}} # {{.Subdomain}} - {{.Domain.FQDN}} {{ define "domain" }}{{if .Subdomain}}{{.Subdomain}}.{{end}}{{.Domain.FQDN}}{{ end }} {{ define "content"}} {{if not .Redirect}} gzip {{if .Proxy}} proxy / {{.Proxy}} {{else}} root /srv/http/domain/{{template "domain" .}} {{if .PHP}} # php not supported {{end}} {{end}} {{else}} redir https://{{.Redirect}}{uri} {{end}} {{end}} {{if .SSL}} {{if .SSLRedirect}} http://{{template "domain".}} { {{if not .Redirect}} redir https://{{template "domain".}}{uri} {{else}} {{template "content" .}} {{end}} } https://{{template "domain".}} { {{template "content" .}} } {{else}} http://{{template "domain" .}},https://{{template "domain".}} { {{template "content" .}} } {{end}} {{else}} http://{{template "domain".}} { {{template "content" .}} } {{end}}