Updated nginx, refactored inventory

This commit is contained in:
Ezri Brimhall 2025-04-02 10:54:07 -06:00
parent 456a7cbeaf
commit f82ae818ba
Signed by: ezri
GPG Key ID: 058A78E5680C6F24
3 changed files with 93 additions and 39 deletions

View File

@ -66,7 +66,7 @@ sites_available:
- 10.242.3.0/24 - 10.242.3.0/24
- fqdn: vtt.ezri.dev - fqdn: vtt.ezri.dev
enabled: no enabled: yes
upstream: http://10.242.203.13:3000 upstream: http://10.242.203.13:3000
max_upload: 512M max_upload: 512M
@ -97,3 +97,4 @@ streams_available:
- 10.242.203.1 - 10.242.203.1
- 10.242.203.13 - 10.242.203.13
- 10.242.3.0/24 - 10.242.3.0/24
- 10.242.0.0/24

123
inventory
View File

@ -5,61 +5,110 @@ local:
vars: vars:
ansible_connection: local ansible_connection: local
root_login:
hosts:
tynan.rum.ezri.dev:
dewalt.rum.ezri.dev:
children:
proxmox
vars:
ansible_user: root
ansible_become: no
localadmin_login:
hosts:
atlantis.net.ezri.dev:
agatha-king.db.ezri.dev:
assurance-of-peace.ext.ezri.dev:
peoples-home.int.ezri.dev:
nebuchadnezzar.ext.ezri.dev:
vars:
ansible_user: localadmin
ansible_become: yes
self_login:
children:
desktops
vars:
ansible_user: ezri
ansible_become: yes
arch:
hosts:
tynan.rum.ezri.dev:
normandy.network.ezri.dev:
serenity.network.ezri.dev:
rocinante.vpn.ezri.dev:
gathering-storm.vpn.ezri.dev:
debian:
hosts:
dewalt.rum.ezri.dev:
atlantis.net.ezri.dev:
agatha-king.db.ezri.dev:
assurance-of-peace.ext.ezri.dev:
peoples-home.int.ezri.dev:
horizon.ext.ezri.dev:
nebuchadnezzar.ext.ezri.dev:
proxmox:
hosts:
deep-space-nine.pve.ezri.dev:
starbase-one.pve.ezri.dev:
tycho-pallas.pve.ezri.dev:
containers: containers:
hosts: hosts:
"peoples-home.servers.ezri.dev": tynan.rum.ezri.dev:
ansible_port: 2231 dewalt.rum.ezri.dev:
# ansible_become: no atlantis.net.ezri.dev:
# ansible_user: root agatha-king.db.ezri.dev:
tynan.servers.ezri.dev:
ansible_become: no
ansible_user: root
dewalt.servers.ezri.dev:
ansible_become: no
ansible_user: root
pathfinder.servers.ezri.dev:
ansible_become: no
ansible_user: root
sojourner.servers.ezri.dev:
ansible_become: no
ansible_user: root
atlantis.servers.ezri.dev:
ansible_become: no
ansible_user: root
vars:
ansible_become: yes
ansible_user: localadmin
unifi: vms:
hosts: hosts:
atlantis.servers.ezri.dev: assurance-of-peace.ext.ezri.dev:
peoples-home.int.ezri.dev:
horizon.ext.ezri.dev:
nebuchadnezzar.ext.ezri.dev:
desktops: desktops:
hosts: hosts:
normandy.network.ezri.dev: normandy.network.ezri.dev:
serenity.wlan.ezri.dev: serenity.network.ezri.dev:
rocinante.vpn.ezri.dev: rocinante.vpn.ezri.dev:
vars: gathering-storm.vpn.ezri.dev:
ansible_become: yes
sysadmin_exercise: unifi:
hosts: hosts:
phoenix.servers.ezri.dev: atlantis.net.ezri.dev:
ansible_become: yes
nginx: int_nginx:
hosts: hosts:
peoples-home.servers.ezri.dev: peoples-home.int.ezri.dev:
ext_nginx: ext_nginx:
hosts: hosts:
assurance-of-peace.ext.ezri.dev: assurance-of-peace.ext.ezri.dev:
ansible_port: 2231 ansible_port: 2231
ansible_user: localadmin
ansible_become: yes
nginx:
children:
int_nginx: int_nginx:
ext_nginx:
htpc:
hosts: hosts:
peoples-home.int.ezri.dev: serenity.network.ezri.dev:
ansible_user: localadmin
ansible_become: yes docker:
hosts:
horizon.ext.ezri.dev:
postgres:
hosts:
agatha-king.db.ezri.dev:
matrix:
hosts:
nebuchadnezzar.ext.ezri.dev:

View File

@ -13,6 +13,10 @@ server {
ssl_certificate /etc/letsencrypt/live/{{ item.cert_domain|default(item.fqdn) }}/fullchain.pem; ssl_certificate /etc/letsencrypt/live/{{ item.cert_domain|default(item.fqdn) }}/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/{{ item.cert_domain|default(item.fqdn) }}/privkey.pem; ssl_certificate_key /etc/letsencrypt/live/{{ item.cert_domain|default(item.fqdn) }}/privkey.pem;
if ($http_user_agent ~* "gptbot") {
return 444;
}
if ($scheme = "http") { if ($scheme = "http") {
return 301 https://$host$request_uri; return 301 https://$host$request_uri;
} }