From d640300d61f9680800478fe5ef4a477f1204eb64 Mon Sep 17 00:00:00 2001 From: L3D Date: Thu, 3 Jun 2021 21:14:42 +0200 Subject: [PATCH] create gitea_fqdn variable --- README.md | 3 +-- defaults/main.yml | 7 ++++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index e91afbd..c5b5238 100644 --- a/README.md +++ b/README.md @@ -20,11 +20,10 @@ The following code has been tested with Debian 8, it should work on Ubuntu as we vars: # Here we assume we are behind a reverse proxy that will # handle https for us, so we bind on localhost:3000 using HTTP - gitea_http_domain: 'git.example.com' + gitea_fqdn: 'git.example.com' gitea_root_url: 'https://git.example.com' gitea_protocol: http - gitea_ssh_domain: git.example.com gitea_start_ssh: true ``` diff --git a/defaults/main.yml b/defaults/main.yml index cddd8cf..8a451e8 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -20,6 +20,7 @@ gitea_systemd_cap_net_bind_service: false gitea_app_name: 'Gitea' gitea_user: 'gitea' gitea_run_mode: 'prod' +gitea_fqdn: 'localhost' # Repository (repository) # -> https://docs.gitea.io/en-us/config-cheat-sheet/#repository-repository @@ -40,13 +41,13 @@ gitea_ui_extra_config: '' # Server (server) # -> https://docs.gitea.io/en-us/config-cheat-sheet/#server-server gitea_protocol: 'http' -gitea_http_domain: 'localhost' -gitea_root_url: 'http://localhost:3000' +gitea_http_domain: "{{ gitea_fqdn }}" +gitea_root_url: "http://{{ gitea_fqdn }}:3000" gitea_http_listen: '127.0.0.1' gitea_http_port: '3000' # gitea_http_letsencrypt_mail: 'mail@example.com' gitea_start_ssh: true -gitea_ssh_domain: "{{ gitea_http_domain }}" +gitea_ssh_domain: "{{ gitea_fqdn }}" gitea_ssh_port: '2222' gitea_ssh_listen: '0.0.0.0' gitea_offline_mode: true