1: not very hard actually, the hardest part is gettin the cert onto your other devices x3
all you need to do is add each subdomain to the cert, add ssl_certificate
and ssl_certificate_key
to the http
block, then enable ssl for each subdomain, like so:
http {
# cert
ssl_certificate /etc/nginx/public.crt;
ssl_certificate_key /etc/nginx/private.key;
server {
listen 12345:443 ssl;
server_name pi.hole;
location / {
proxy_pass http://localhost:80;
}
}
server {
listen 12345:443 ssl;
server_name fox.hole;
location / {
proxy_pass http://localhost:621;
}
}
}
2: correct, all traffic goes through nginx.