Skip to content

Commit 2eda1bc

Browse files
committed
Kind of fix ssl
1 parent e4b8aaf commit 2eda1bc

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,12 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
88
apt-get autoremove && \
99
apt-get clean && apt-get autoclean
1010

11-
# Turn on the mcrypt php module and the rewrite apache module
11+
# Turn on the mcrypt php module and the rewrite\ssl apache modules
1212
RUN php5enmod mcrypt && \
13-
a2enmod rewrite
13+
a2enmod rewrite && \
14+
a2enmod ssl
15+
16+
# TODO: Proper ssl certs via letsencrypt or something
1417

1518
# Configure our path for where we'll serve source-code from
1619
WORKDIR /mnt/flamework

tests/docker/001-flamework.conf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@
4040
CustomLog ${APACHE_LOG_DIR}/access.log combined
4141

4242
RewriteEngine on
43-
43+
4444
DirectoryIndex index.php
45+
46+
SSLEngine on
47+
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
48+
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
4549
</VirtualHost>

0 commit comments

Comments
 (0)