Made program generate SSL
This commit is contained in:
15
entrypoint.sh
Normal file
15
entrypoint.sh
Normal 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
|
||||
Reference in New Issue
Block a user