roles/gitea: Allow configuring clone URLs
The `gitea_ssh_domain` and `gitea_http_domain` variables can be used to configure the host portion of the URLs for cloning Git repositories over SSH and HTTPS, respectively. By default, both values are the FQDN of the machine hosting Gitea.jenkins-master
parent
a7ebe3b2ae
commit
6a83a6dfa3
|
@ -0,0 +1,3 @@
|
||||||
|
gitea_ssh_domain: '{{ ansible_fqdn }}'
|
||||||
|
gitea_http_domain: '{{ gitea_ssh_domain }}'
|
||||||
|
gitea_root_url: 'http://{{ gitea_http_domain }}:3000/'
|
|
@ -21,10 +21,10 @@ ROOT = /var/lib/gitea/gitea-repositories
|
||||||
|
|
||||||
[server]
|
[server]
|
||||||
APP_DATA_PATH = /var/lib/gitea
|
APP_DATA_PATH = /var/lib/gitea
|
||||||
SSH_DOMAIN = localhost
|
SSH_DOMAIN = {{ gitea_ssh_domain }}
|
||||||
DOMAIN = localhost
|
DOMAIN = {{ gitea_http_domain }}
|
||||||
HTTP_PORT = 3000
|
HTTP_PORT = 3000
|
||||||
ROOT_URL = http://localhost:3000/
|
ROOT_URL = {{ gitea_root_url }}
|
||||||
DISABLE_SSH = false
|
DISABLE_SSH = false
|
||||||
SSH_PORT = 22
|
SSH_PORT = 22
|
||||||
LFS_START_SERVER = true
|
LFS_START_SERVER = true
|
||||||
|
|
Loading…
Reference in New Issue