Add connectivity to localhost for the domain
This commit is contained in:
parent
a5f1e6b711
commit
32b816c77b
2 changed files with 3 additions and 1 deletions
|
@ -13,7 +13,7 @@
|
|||
lineinfile:
|
||||
path: /etc/hosts
|
||||
regexp: "^127.0.0.1"
|
||||
line: "127.0.0.1 {{ hostname }} localhost"
|
||||
line: "127.0.0.1 {{ hostname }} localhost {{ domain }}"
|
||||
|
||||
- name: Set timezone
|
||||
file:
|
||||
|
|
|
@ -34,6 +34,8 @@ server {
|
|||
listen [::]:8448 ssl http2 default_server;
|
||||
|
||||
allow {{ my_ip }}/32;
|
||||
allow 127.0.0.1/32;
|
||||
allow 172.18.0.0/16;
|
||||
deny all;
|
||||
|
||||
# ssl_trusted_certificate /etc/letsencrypt/live/{{ domain_name }}/chain.pem;
|
||||
|
|
Loading…
Reference in a new issue