Skip to content

Commit

Permalink
Use https
Browse files Browse the repository at this point in the history
  • Loading branch information
kmaxii committed Oct 16, 2024
1 parent 4886cce commit 438207d
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,9 @@ COPY ./liquibase /var/www/html/liquibase
COPY start.sh /start.sh
RUN chmod +x /start.sh

COPY ssl.conf /etc/apache2/sites-available/ssl.conf
RUN a2ensite ssl.conf


# Use the start script as the entry point
CMD ["/start.sh"]
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ services:
image: ${DOCKER_IMAGE:-kmaxi/vow-website:latest}
ports:
- "80:80"
- "443:443"
environment:
- WEBSITE_DB_HOST=website
- WEBSITE_DB_NAME=website
Expand All @@ -20,6 +21,8 @@ services:
- adminer
volumes:
- dynamic_data:/var/www/html/dynamic
- /etc/letsencrypt/live/voicesofwynn.com:/etc/letsencrypt/live/voicesofwynn.com:ro
- /etc/letsencrypt/archive/voicesofwynn.com:/etc/letsencrypt/archive/voicesofwynn.com:ro
env_file:
- .env

Expand Down
16 changes: 16 additions & 0 deletions ssl.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<VirtualHost *:443>
ServerName voicesofwynn.com
DocumentRoot /var/www/html

SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/voicesofwynn.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/voicesofwynn.com/privkey.pem

<Directory /var/www/html>
AllowOverride All
Require all granted
</Directory>

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

0 comments on commit 438207d

Please sign in to comment.