jenkins-bot has submitted this change and it was merged. Change subject: Add redirect for translatewiki.org ......................................................................
Add redirect for translatewiki.org Change-Id: Ibe5385ee946fe7be600bc14bfb3a8a2b6533f9ce --- A puppet/modules/nginx/files/translatewiki.org M puppet/modules/nginx/manifests/init.pp 2 files changed, 15 insertions(+), 0 deletions(-) Approvals: Siebrand: Looks good to me, approved jenkins-bot: Verified diff --git a/puppet/modules/nginx/files/translatewiki.org b/puppet/modules/nginx/files/translatewiki.org new file mode 100644 index 0000000..7e4c516 --- /dev/null +++ b/puppet/modules/nginx/files/translatewiki.org @@ -0,0 +1,6 @@ +# file managed by puppet + +server { + server_name .translatewiki.org; + rewrite ^ https://translatewiki.net$request_uri? permanent; +} diff --git a/puppet/modules/nginx/manifests/init.pp b/puppet/modules/nginx/manifests/init.pp index b232fe0..373aab4 100644 --- a/puppet/modules/nginx/manifests/init.pp +++ b/puppet/modules/nginx/manifests/init.pp @@ -37,6 +37,15 @@ target => '../sites-available/translatewiki.net', } + file { '/etc/nginx/sites-available/translatewiki.org': + source => 'puppet:///modules/nginx/translatewiki.org', + } + + file { '/etc/nginx/sites-enabled/translatewiki.org': + ensure => 'link', + target => '../sites-available/translatewiki.org', + } + file { '/etc/nginx/sites-enabled/default': ensure => 'absent', } -- To view, visit https://gerrit.wikimedia.org/r/104023 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ibe5385ee946fe7be600bc14bfb3a8a2b6533f9ce Gerrit-PatchSet: 1 Gerrit-Project: translatewiki Gerrit-Branch: master Gerrit-Owner: Siebrand <siebr...@wikimedia.org> Gerrit-Reviewer: Nikerabbit <niklas.laxst...@gmail.com> Gerrit-Reviewer: Siebrand <siebr...@wikimedia.org> Gerrit-Reviewer: jenkins-bot _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits