1
0
Fork 0
chezmoi/bin/executable_make_certs
2025-01-02 08:53:15 +01:00

55 lines
1.4 KiB
Bash

#!/bin/zsh
set -e
doms=(
'*.adminer.localhost'
'*.aikido.localhost'
'*.asqix.localhost'
'*.baterie-grohe.localhost'
'*.booking-core.localhost'
'*.booking.localhost'
'*.caves.localhost'
'*.enix.localhost'
'*.eno-statistix.localhost'
'*.eno.localhost'
'*.eshop.localhost'
'*.gdpr.localhost'
'*.invoicing.localhost'
'*.jopixel-support.localhost'
'*.kalich.localhost'
'*.katalogy.localhost'
'*.kotmel.localhost'
'*.laya-server.localhost'
'*.layaweb.localhost'
'*.mytango.localhost'
'*.nicerice.localhost'
'*.sms.localhost'
'*.statistix.localhost'
'*.teastarter.localhost'
'*.trailguide.localhost'
'*.up123.localhost'
'*.vizit-core.localhost'
'*.vizit-virtualni-recepce.localhost'
'*.vizit.localhost'
'*.vizit-master.localhost'
'*.vizitpresentation.localhost'
'*.zdravotniregistr.cz'
'djinn1.localhost'
'local3000.localhost'
'localhost'
'harbor.localhost'
'gitops.localhost'
'grafana.localhost'
'zot.localhost'
'trucks.dmis.corp.metrans.cz'
'ucustomerportal.corp.metrans.cz'
'nc.corp.metrans.cz'
)
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