1package config
2
3const defaultReadme = "# Soft Serve\n\n Welcome! You can configure your Soft Serve server by cloning this repo and pushing changes.\n\n## Repos\n\n{{ range .Repos }}* {{ .Name }}{{ if .Note }} - {{ .Note }} {{ end }}\n - `git clone ssh://{{$.Host}}:{{$.Port}}/{{.Repo}}`\n{{ end }}"
4
5const defaultConfig = `name: Soft Serve
6host: %s
7port: %d
8
9# Set the access level for anonymous users. Options are: read-write, read-only and no-access
10anon-access: %s
11
12# Allow users with no private keys read-only access. Any password is accepted.
13allow-no-keys: false
14
15# Customize repo display in menu
16repos:
17 - name: Home
18 repo: config
19 note: "Configuration and content repo for this server"`
20
21const hasKeyUserConfig = `
22
23# Users can read all repos, and push to collab-repos, admin can push to all repos
24users:
25 - name: admin
26 admin: true
27 public-key:
28 %s`
29
30const defaultUserConfig = `
31# users:
32# - name: admin
33# admin: true
34# public-key:
35# KEY TEXT`
36
37const exampleUserConfig = `
38# - name: Example User
39# collab-repos:
40# - REPO
41# public-key:
42# KEY TEXT`