Only add HTTPS redirect when it's needed
This commit is contained in:
parent
48efcf4d91
commit
cfb498d7c6
4 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
|||
nebula_is_lighthouse: true
|
||||
nebula_listen_port: "{{ nebula_lighthouse_port }}"
|
||||
ssh_extra_allowed_users: f2b@{{ nebula.cidr }} f2b@{{ pve_hosts.internal_cidr }}
|
||||
|
||||
nginx_https_redirect: true
|
||||
|
|
|
@ -1,2 +1,4 @@
|
|||
# Listen on a static port so it can be opened in the firewall
|
||||
nebula_listen_port: "{{ nebula_lighthouse_port }}"
|
||||
|
||||
nginx_https_redirect: true
|
||||
|
|
1
ansible/roles/nginx/defaults/main.yml
Normal file
1
ansible/roles/nginx/defaults/main.yml
Normal file
|
@ -0,0 +1 @@
|
|||
nginx_https_redirect: false
|
|
@ -36,3 +36,4 @@
|
|||
mode: "0644"
|
||||
become: true
|
||||
notify: reload nginx
|
||||
when: nginx_https_redirect
|
||||
|
|
Loading…
Reference in a new issue