42 lines
1 KiB
Bash
42 lines
1 KiB
Bash
#!/bin/zsh
|
|
|
|
set -e
|
|
|
|
doms=(
|
|
'localhost'
|
|
'djinn1.localhost'
|
|
'*.gdpr.localhost'
|
|
'*.up123.localhost'
|
|
'*.caves.localhost'
|
|
'*.eno.localhost'
|
|
'*.adminer.localhost'
|
|
'*.laya-server.localhost'
|
|
'*.eshop.localhost'
|
|
'*.teastarter.localhost'
|
|
'*.aikido.localhost'
|
|
'*.trailguide.localhost'
|
|
'*.mytango.localhost'
|
|
'*.invoicing.localhost'
|
|
'*.layaweb.localhost'
|
|
'*.asqix.localhost'
|
|
'*.statistix.localhost'
|
|
'*.booking.localhost'
|
|
'*.kotmel.localhost'
|
|
'*.baterie-grohe.localhost'
|
|
'*.zdravotniregistr.cz'
|
|
'*.katalogy.localhost'
|
|
'*.vizit-core.localhost'
|
|
'*.vizit.localhost'
|
|
'*.booking-core.localhost'
|
|
'*.nicerice.localhost'
|
|
'*.jopixel-support.localhost'
|
|
'*.eno-statistix.localhost'
|
|
)
|
|
|
|
mkcert -cert-file $HOME/.config/nginx/ssl/localhost.crt -key-file $HOME/.config/nginx/ssl/localhost.key $doms
|
|
|
|
if [[ $(systemctl --user is-active nginx) = active ]]
|
|
then
|
|
echo "reloading nginx"
|
|
systemctl --user reload-or-restart --user nginx
|
|
fi
|