Permalink
Browse files

add rootco.de SSL vhost config

  • Loading branch information...
sysrich committed May 16, 2016
1 parent 5854418 commit ab3b8fcc6aeae57c02f2ad40cb423a0e6a65a579
Showing with 20 additions and 0 deletions.
  1. +10 −0 rootco/web/SSL-rootco.de.conf
  2. +10 −0 rootco/web/init.sls
@@ -0,0 +1,10 @@
+<VirtualHost _default_:443>
+ DocumentRoot "/srv/www/htdocs"
+ ErrorLog /var/log/apache2/error_log
+ TransferLog /var/log/apache2/access_log
+ SSLEngine on
+ SSLCertificateFile /etc/letsencrypt/live/rootco.de/fullchain.pem
+ SSLCertificateKeyFile /etc/letsencrypt/live/rootco.de/privkey.pem
+ CustomLog /var/log/apache2/ssl_request_log ssl_combined
+</VirtualHost>
+
View
@@ -22,3 +22,13 @@ certbot:
- name: https://github.com/certbot/certbot
- target: /opt/certbot
- user: root
+
+/etc/apache2/vhosts.d/SSL-rootco.de.conf:
+ file.managed:
+ - user: root
+ - group: root
+ - mode: 644
+ - source: salt://rootco/web/SSL-rootco.de.conf
+ - require:
+ - pkg: apache2
+

0 comments on commit ab3b8fc

Please sign in to comment.