Skip to content

Commit

Permalink
Merge pull request #47 from HSLdevcom/adding-new-domain
Browse files Browse the repository at this point in the history
New turku domain
  • Loading branch information
siren authored Sep 8, 2017
2 parents 2989888 + 479ce3d commit a606609
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ http {
dev-lahti.digitransit.fi lahti.digitransit.fi
dev-lappeenranta.digitransit.fi lappeenranta.digitransit.fi
dev-oulu.digitransit.fi oulu.digitransit.fi
dev-turku.digitransit.fi turku.digitransit.fi;
dev-turku.digitransit.fi turku.digitransit.fi reittiopas.foli.fi;
listen 8080;

if ($http_x_forwarded_proto != "https") {
Expand Down
6 changes: 6 additions & 0 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,12 @@ describe('waltti ui', function() {
testProxying(city+'.digitransit.fi','/','digitransit-ui-waltti:8080', true);
});

testRedirect('reittiopas.foli.fi','/kissa','https://reittiopas.foli.fi/kissa');
testProxying('reittiopas.foli.fi','/','digitransit-ui-waltti:8080', true);

testRedirect('reittiopas.hameenlinna.fi','/kissa','https://reittiopas.hameenlinna.fi/kissa');
testProxying('reittiopas.hameenlinna.fi','/','digitransit-ui-waltti:8080', true);

it('https should not redirect', function(done) {
httpsGet('turku.digitransit.fi','/kissa').end((err,res)=>{
expect(err).to.be.null;
Expand Down

0 comments on commit a606609

Please sign in to comment.