Files
baby-nas/internal/modules/samba/smb.conf.tmpl
T

25 lines
527 B
Cheetah

# Generated by nasctl. Do not edit manually.
[global]
workgroup = WORKGROUP
server string = nasctl
security = user
map to guest = Bad User
dns proxy = no
{{range .Shares}}
[{{.Name}}]
path = {{.Path}}
comment = {{.Comment}}
browseable = yes
read only = {{if .ReadOnly}}yes{{else}}no{{end}}
guest ok = {{if .GuestOK}}yes{{else}}no{{end}}
{{- if .ValidUsers}}
valid users = {{join .ValidUsers ","}}
{{- end}}
{{- if .ValidGroups}}
valid groups = {{join .ValidGroups ","}}
{{- end}}
{{end}}