migrate nginx config dirs & add hostname specific configs

Hazel 2023-09-08 18:27:21 +02:00
parent dd6fb316cb
commit 8c7c59f1c8
Signed by: h4
GPG Key ID: C7C5A3D1A085B70F
3 changed files with 4 additions and 5 deletions

View File

@ -1,13 +1,12 @@
cp ./nginx/nginx.conf /etc/nginx/nginx.conf
cp ./nginx/anycast-cgi.conf /etc/nginx/snippets/anycast-cgi.conf
cp ./nginx/a.ravy.org.conf /etc/nginx/sites-available/a.ravy.org.conf
cp ./nginx/as200242.net.conf /etc/nginx/sites-available/as200242.net.conf
ln -s /etc/nginx/sites-available/a.ravy.org.conf /etc/nginx/sites-enabled/a.ravy.org
ln -s /etc/nginx/sites-available/as200242.net.conf /etc/nginx/sites-enabled/as200242.net
cp ./nginx/sites-available/* /etc/nginx/sites-available/ -r
[ -d "./nginx/$(hostname)" ] && cp ./nginx/$(hostname)/* /etc/nginx/sites-available/ -r
ln -s /etc/nginx/sites-available/* /etc/nginx/sites-enabled/
cp ./www /var -r
rm /etc/nginx/sites-enabled/default 2>/dev/null
nginx -t && systemctl restart nginx