Compare commits

..

No commits in common. "c077fa44051c4b84f09be0acd335b1ca6a903270" and "35897517731ed623aa8ee79d447bef0b724017b9" have entirely different histories.

3 changed files with 4 additions and 7 deletions

View file

@ -19,12 +19,11 @@ dns-rest-api1.sunet.se:
dns:
dns::knotdns:
dns::apache2:
dnsapiport = '8443'
sunet::certbot::acmed:
sunet::baas2:
nodename: 7B9DBFE1F4D1
backup_dirs:
- '/etc/'
- '/etc'
- '/var/'
exclude_list:
- '/.../dsmsched.log'

View file

@ -1,6 +1,4 @@
class dns::apache2 (
$dnsapiport = '8443',
){
class dns::apache2 {
package { ['apache2', 'libapache2-mod-qos', 'python3-certbot-apache']:
ensure => installed,
@ -36,6 +34,6 @@ class dns::apache2 (
rule => "add rule inet filter input tcp dport 80 counter accept comment \"allow-apache2-http\""
}
sunet::nftables::rule { 'apache-https':
rule => "add rule inet filter input tcp dport $dnsapiport counter accept comment \"allow-apache2-https\""
rule => "add rule inet filter input tcp dport 443 counter accept comment \"allow-apache2-https\""
}
}

View file

@ -6,7 +6,7 @@
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost *:<%= @dnsapiport %>>
<VirtualHost *:443>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined