Added role nginx/default_server

To prevent circular dependencies, role must be included manually on
required servers
dehydrated
Felix Stupp 5 years ago
parent 7a33ceffb8
commit 74a62e861f
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -1,6 +1,7 @@
- name: Configure nvak.banananet.work - name: Configure nvak.banananet.work
hosts: nvak.banananet.work hosts: nvak.banananet.work
roles: roles:
- role: nginx/default_server # Would not be configurable otherwise
# Git Server # Git Server
- role: server/gitea - role: server/gitea
domain: git.banananet.work domain: git.banananet.work

@ -1,6 +1,7 @@
- name: Configure rurapenthe - name: Configure rurapenthe
hosts: rurapenthe.banananet.work hosts: rurapenthe.banananet.work
roles: roles:
- role: nginx/default_server # Would not be configurable otherwise
# - role: dns/slave # - role: dns/slave
# domain: banananet.work # domain: banananet.work
# masters: # masters:

@ -0,0 +1,21 @@
---
allow_duplicates: no
dependencies:
- role: nginx/server
domain: "{{ inventory_hostname }}"
listen_directives: |
listen 443 ssl http2 default_server;
listen [::]:443 ssl http2 default_server;
directives: |
location / {
return 404;
}
location = /status {
stub_status;
allow 127.0.0.1/8;
allow ::1;
allow {{ global_wireguard_ipv4_range }};
deny all;
}
Loading…
Cancel
Save