summaryrefslogtreecommitdiffstats
path: root/roles/cgit/meta/argument_specs.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/cgit/meta/argument_specs.yml')
-rw-r--r--roles/cgit/meta/argument_specs.yml8
1 files changed, 6 insertions, 2 deletions
diff --git a/roles/cgit/meta/argument_specs.yml b/roles/cgit/meta/argument_specs.yml
index 48676be9..3e80987e 100644
--- a/roles/cgit/meta/argument_specs.yml
+++ b/roles/cgit/meta/argument_specs.yml
@@ -24,8 +24,12 @@ argument_specs:
default: "personal git repositories"
cgit_clone_prefix:
type: "str"
- description: "Clone URL prefix shown in cgit UI"
- default: "ssh://{{ cgit_ssh_user }}@{{ cgit_hostname }}"
+ description: >-
+ Clone URL prefix shown in cgit UI. Uses /~ (home-relative, resolves
+ against cgit_ssh_user's home / cgit_repos_dir) instead of the literal
+ cgit_repos_dir path, so the server's filesystem layout isn't exposed
+ in URLs shown to anyone browsing the web UI
+ default: "ssh://{{ cgit_ssh_user }}@{{ cgit_hostname }}:{{ ssh_port }}/~"
cgit_ssh_user:
type: "str"
description: "System user for SSH git push access"