Skip to content
Permalink
Browse files

Correctly redirect droidwiki.org to www.droidwiki.org instead of data…

….droidwiki.org
  • Loading branch information
FlorianSW committed Dec 11, 2019
1 parent 4e5ac58 commit f6c9bb4767d47be53886d9842e24f07b67567a5a
Showing with 11 additions and 1 deletion.
  1. +11 −1 modules/role/manifests/nginx/droidwiki.pp
@@ -18,7 +18,7 @@
$sslcert = hiera('nginx::tls::fullchain');
$sslkey = hiera('nginx::tls::privkey');

['www.droidwiki.org', 'en.droidwiki.org', 'data.droidwiki.org'].each |Integer $index, String $domain| {
['en.droidwiki.org', 'data.droidwiki.org'].each |Integer $index, String $domain| {
droidwiki::nginx::mediawiki { $domain:
vhost_url => $domain,
server_name => [ $domain ],
@@ -30,6 +30,16 @@
}
}

droidwiki::nginx::mediawiki { 'www.droidwiki.org':
vhost_url => 'www.droidwiki.org',
server_name => [ 'www.droidwiki.org', 'droidwiki.org' ],
manage_directories => false,
html_root => '/data/mediawiki/mw-config/mw-config/docroot',
ssl => false,
http2 => 'off',
manage_http_redirects => false,
}

monit::certcheck { 'www.droidwiki.org': }

nginx::resource::server { 'droidwiki.org.external':

0 comments on commit f6c9bb4

Please sign in to comment.
You can’t perform that action at this time.