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 = `# The name of the server to show in the TUI.
6name: Soft Serve
7
8# The host and port to display in the TUI. You may want to change this if your
9# server is accessible from a different host and/or port that what it's
10# actually listening on (for example, if it's behind a reverse proxy).
11host: %s
12port: %d
13
14# Access level for anonymous users. Options are: read-write, read-only and
15# no-access.
16anon-access: %s
17
18# You can grant read-only access to users without private keys. Any password
19# will be accepted.
20allow-keyless: false
21
22# Customize repo display in the menu. Only repos in this list will appear in
23# the TUI.
24repos:
25 - name: Home
26 repo: config
27 private: true
28 note: "Configuration and content repo for this server"
29`
30
31const hasKeyUserConfig = `
32
33# Authorized users. Admins have full access to all repos. Users can read all
34# repos and push to their collab-repos.
35users:
36 - name: Admin
37 admin: true
38 public-keys:
39%s
40`
41
42const defaultUserConfig = `
43# users:
44# - name: Admin
45# admin: true
46# public-keys:
47# - KEY TEXT`
48
49const exampleUserConfig = `
50# - name: Example User
51# collab-repos:
52# - REPO
53# public-keys:
54# - KEY TEXT
55`