summaryrefslogtreecommitdiffstats
path: root/Bugzilla/DaemonControl.pm
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-03-02 06:05:28 +0100
committerGitHub <noreply@github.com>2018-03-02 06:05:28 +0100
commit785a05910108a6d032e802605762d7567dec4123 (patch)
treef22f76884460d1ae17e2ed9edfef77fdf643168a /Bugzilla/DaemonControl.pm
parentb5ece2542a5416c97f3b9e060b877404349fafe6 (diff)
downloadbugzilla-785a05910108a6d032e802605762d7567dec4123.tar.gz
bugzilla-785a05910108a6d032e802605762d7567dec4123.tar.xz
Bug 1442520 - move inbound_proxies to localconfig
Diffstat (limited to 'Bugzilla/DaemonControl.pm')
-rw-r--r--Bugzilla/DaemonControl.pm12
1 files changed, 8 insertions, 4 deletions
diff --git a/Bugzilla/DaemonControl.pm b/Bugzilla/DaemonControl.pm
index 97ecb84e0..1de8350c1 100644
--- a/Bugzilla/DaemonControl.pm
+++ b/Bugzilla/DaemonControl.pm
@@ -10,6 +10,7 @@ use 5.10.1;
use strict;
use warnings;
+use Bugzilla::Logging;
use Bugzilla::Constants qw(bz_locations);
use Cwd qw(realpath);
use English qw(-no_match_vars $PROGRAM_NAME);
@@ -131,16 +132,19 @@ sub run_httpd {
sub run_cereal_and_httpd {
my @httpd_args = @_;
- my $lc = Bugzilla::Install::Localconfig::read_localconfig();
- if ( ($lc->{inbound_proxies} // '') eq '*' && $lc->{urlbase} =~ /^https/) {
- push @httpd_args, '-DHTTPS';
- }
push @httpd_args, '-DNETCAT_LOGS';
my $signal_f = catch_signal("TERM", 0);
my $cereal_exit_f = run_cereal();
return assert_cereal()->then(
sub {
+ my $lc = Bugzilla::Install::Localconfig::read_localconfig();
+ if ( ($lc->{inbound_proxies} // '') eq '*' && $lc->{urlbase} =~ /^https/) {
+ push @httpd_args, '-DHTTPS';
+ }
+ elsif (not $lc->{urlbase} =~ /^https/) {
+ WARN("HTTPS urlbase but inbound_proxies is not '*'");
+ }
my $httpd_exit_f = run_httpd(@httpd_args);
return Future->wait_any($cereal_exit_f, $httpd_exit_f, $signal_f);