0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-03-15 19:05:09 +01:00

On branch apache-ssl

Changes to be committed:
	modified:   docker-entrypoint.sh

 Untracked files:
	.config/000-default.conf

Signed-off-by: marceljd <support@dihosting.ch>
This commit is contained in:
marceljd 2019-02-07 13:22:19 +00:00
parent 4c0d269740
commit 76ca17dfb2

View file

@ -129,4 +129,16 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
fi fi
fi fi
## APACHE SSL
## als APACHE en ENV VAR set dan dit uitvoeren nog inbouwen
a2enmod ssl
a2enmod headers
openssl genrsa -out ca.key 2048
openssl req -batch -nodes -new -key ca.key -out ca.csr
openssl x509 -req -days 3650 -in ca.csr -signkey ca.key -out ca.crt
mkdir -p /etc/apache2/ssl
mv ca.crt ca.key ca.csr /etc/apache2/ssl/
mv /usr/src/apache/000-default.conf /etc/apache2/sites-enabled/
## einde SSL toevoegingen
exec "$@" exec "$@"