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```\ngit clone ssh://{{.Host}}:{{.Port}}/config\n```"
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# Grant read-only access to users without private keys. Any password will be accepted.
13allow-keyless: false
14
15# Customize repo display in the menu.
16repos:
17 - name: Home
18 repo: config
19 private: true
20 note: "Configuration and content repo for this server"`
21
22const hasKeyUserConfig = `
23
24# Users can read all repos and push to collab-repos. Admins have full access to all repos.
25users:
26 - name: admin
27 admin: true
28 public-key:
29 %s`
30
31const defaultUserConfig = `
32# users:
33# - name: admin
34# admin: true
35# public-key:
36# KEY TEXT`
37
38const exampleUserConfig = `
39# - name: Example User
40# collab-repos:
41# - REPO
42# public-key:
43# KEY TEXT`