Verified Commit 785231ee authored by Dustin Gawron's avatar Dustin Gawron
Browse files

chore(dev): Support für HTTPS im Dev-Docker

Browser beschränken bestimmte Features (z.B. die Hash-Berechnung), wenn 
kein HTTPS genutzt wird. Daher kann jetzt HTTPS mit einem 
selbst-signierten Zertifikat bei der Entwicklung genutzt werden.
parent 9571111a
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
<VirtualHost *:443>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# SSL Config
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/ssl.crt
SSLCertificateKeyFile /etc/apache2/ssl/ssl.key
</VirtualHost>
FROM php:7.2-apache
FROM php:7.4-apache
ADD php.ini /usr/local/etc/php
RUN a2enmod ssl && mkdir /etc/apache2/ssl
RUN openssl req -new -newkey rsa:4096 -days 3650 -nodes -x509 -subj "/C=DE/ST=NRW/L=MS/O=WWU/CN=ZIVVTTEST" -keyout /etc/apache2/ssl/ssl.key -out /etc/apache2/ssl/ssl.crt
COPY 000-default.conf /etc/apache2/sites-enabled/000-default.conf
COPY /build/. /var/www/html/
RUN chown -R www-data:www-data /var/www/html && chmod -R 777 /var/www/html
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment