Add connectivity to localhost for the domain

This commit is contained in:
Erik Stambaugh 2024-01-28 15:45:21 -08:00
parent a5f1e6b711
commit 32b816c77b
2 changed files with 3 additions and 1 deletions

View file

@ -13,7 +13,7 @@
lineinfile: lineinfile:
path: /etc/hosts path: /etc/hosts
regexp: "^127.0.0.1" regexp: "^127.0.0.1"
line: "127.0.0.1 {{ hostname }} localhost" line: "127.0.0.1 {{ hostname }} localhost {{ domain }}"
- name: Set timezone - name: Set timezone
file: file:

View file

@ -34,6 +34,8 @@ server {
listen [::]:8448 ssl http2 default_server; listen [::]:8448 ssl http2 default_server;
allow {{ my_ip }}/32; allow {{ my_ip }}/32;
allow 127.0.0.1/32;
allow 172.18.0.0/16;
deny all; deny all;
# ssl_trusted_certificate /etc/letsencrypt/live/{{ domain_name }}/chain.pem; # ssl_trusted_certificate /etc/letsencrypt/live/{{ domain_name }}/chain.pem;