Made program generate SSL

This commit is contained in:
2025-04-15 16:14:04 +02:00
parent 7519f21389
commit a5824f8b51
7 changed files with 39 additions and 56 deletions

15
entrypoint.sh Normal file
View File

@@ -0,0 +1,15 @@
#!/bin/sh
cat >> /usr/local/apache2/conf/httpd.conf <<EOF
ServerName $DOMAIN
ServerAdmin $EMAIL
<VirtualHost *:80>
ServerName $DOMAIN
</VirtualHost>
EOF
http -k start
certbot --apache -n --keep -d $DOMAIN -m $EMAIL
httpd -k stop
httpd-foreground