1
0
Fork 0
chezmoi/bin/executable_make_certs
2022-07-08 14:08:58 +02:00

44 lines
1.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'
'*.enix.localhost'
'*.statistix.localhost'
'*.booking.localhost'
'*.kotmel.localhost'
'*.baterie-grohe.localhost'
'*.zdravotniregistr.cz'
'*.katalogy.localhost'
'*.vizit-core.localhost'
'*.vizit.localhost'
'*.vizitpresentation.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