diff --git a/ansible_files/playbook/host_vars/H2.yaml b/ansible_files/playbook/host_vars/H2.yaml index 4b38cc260d2a3d10ba769f30db452f84644e5419..de987f8584e49039f39632617a7e3a6cf86aa838 100644 --- a/ansible_files/playbook/host_vars/H2.yaml +++ b/ansible_files/playbook/host_vars/H2.yaml @@ -10,6 +10,7 @@ tunnel: name: wg0 pubKey: pP8tgE8LBRk+UnZMkg9dbQC5fgWJUrqqZbKi4yjjI2Y= address: 10.0.0.2/24 + expose: 10.0.0.2 port: 51822 peerkey: /enZJcQ/tPK5TKu/KR1Y7nS4MYSgeuEz4vyQ72ahzRE= peerendpoint: 1.0.0.3:51821 diff --git a/ansible_files/playbook/templates/nginx_config.j2 b/ansible_files/playbook/templates/nginx_config.j2 index 2f336eae0dfdf3edb4bfb0724b21c63500f609d5..4f872d20cc4a49bf7cc960fb4e348e2a9bdd3dae 100644 --- a/ansible_files/playbook/templates/nginx_config.j2 +++ b/ansible_files/playbook/templates/nginx_config.j2 @@ -1,7 +1,7 @@ # ANSIBLE MANAGED # server { - listen {{ tunnel.address }}:80 default_server; + listen {{ tunnel.expose }}:80 default_server; root /var/www/html;