Skip to content

Commit 5824df7

Browse files
authored
Merge pull request roles-ansible#38 from roles-ansible/docs
create gitea_fqdn variable
2 parents 6f0be69 + d640300 commit 5824df7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,10 @@ The following code has been tested with Debian 8, it should work on Ubuntu as we
2020
vars:
2121
# Here we assume we are behind a reverse proxy that will
2222
# handle https for us, so we bind on localhost:3000 using HTTP
23-
gitea_http_domain: 'git.example.com'
23+
gitea_fqdn: 'git.example.com'
2424
gitea_root_url: 'https://git.example.com'
2525
gitea_protocol: http
2626

27-
gitea_ssh_domain: git.example.com
2827
gitea_start_ssh: true
2928
```
3029

defaults/main.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ gitea_systemd_cap_net_bind_service: false
2020
gitea_app_name: 'Gitea'
2121
gitea_user: 'gitea'
2222
gitea_run_mode: 'prod'
23+
gitea_fqdn: 'localhost'
2324

2425
# Repository (repository)
2526
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#repository-repository
@@ -40,13 +41,13 @@ gitea_ui_extra_config: ''
4041
# Server (server)
4142
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#server-server
4243
gitea_protocol: 'http'
43-
gitea_http_domain: 'localhost'
44-
gitea_root_url: 'http://localhost:3000'
44+
gitea_http_domain: "{{ gitea_fqdn }}"
45+
gitea_root_url: "http://{{ gitea_fqdn }}:3000"
4546
gitea_http_listen: '127.0.0.1'
4647
gitea_http_port: '3000'
4748
# gitea_http_letsencrypt_mail: '[email protected]'
4849
gitea_start_ssh: true
49-
gitea_ssh_domain: "{{ gitea_http_domain }}"
50+
gitea_ssh_domain: "{{ gitea_fqdn }}"
5051
gitea_ssh_port: '2222'
5152
gitea_ssh_listen: '0.0.0.0'
5253
gitea_offline_mode: true

0 commit comments

Comments
 (0)