From: Dylan William Hardison Date: Fri, 1 Feb 2019 20:46:28 +0000 (-0500) Subject: no bug - allow morbo to run with ssl X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56e4cb0e2392d965a623d34b0ef483a48f4d6110;p=thirdparty%2Fbugzilla.git no bug - allow morbo to run with ssl --- diff --git a/vagrant_support/start_morbo b/vagrant_support/start_morbo index 8909282f4..cb065845d 100644 --- a/vagrant_support/start_morbo +++ b/vagrant_support/start_morbo @@ -1,8 +1,16 @@ #!/usr/bin/env perl -$ENV{PERL5LIB} = '/vagrant/local/lib/perl5'; -$ENV{PATH} = "/vagrant/local/bin:$ENV{PATH}"; -$ENV{MOJO_LISTEN} = 'http://*:80'; +my $cert_file = '/vagrant/bmo-web.vm.pem'; +my $key_file = '/vagrant/bmo-web.vm-key.pem'; +my $listen = 'http://*:80'; + +if (-f $cert_file && -f $key_file) { + $listen .= ",https://*:443?cert=$cert_file&key=$key_file"; +} + +$ENV{PERL5LIB} = '/vagrant/local/lib/perl5'; +$ENV{PATH} = "/vagrant/local/bin:$ENV{PATH}"; +$ENV{MOJO_LISTEN} = $listen; $ENV{BUGZILLA_ALLOW_INSECURE_HTTP} = 1; my @files