summaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-03-01 02:59:55 +0100
committerGitHub <noreply@github.com>2018-03-01 02:59:55 +0100
commit48f08ef18983729dbdcd1af9468fb4ea1ee25fbe (patch)
tree68d2b0bd8eb7f340716bbbb69ced6107da76a801 /conf
parentc7fd0908bd85bc5761aa28fe9c893f93394bfd4b (diff)
downloadbugzilla-48f08ef18983729dbdcd1af9468fb4ea1ee25fbe.tar.gz
bugzilla-48f08ef18983729dbdcd1af9468fb4ea1ee25fbe.tar.xz
Bug 1437646 - Refactor entrypoint to use Bugzilla::DaemonControl
Diffstat (limited to 'conf')
-rw-r--r--conf/checksetup_answers.txt28
-rw-r--r--conf/httpd.conf90
2 files changed, 118 insertions, 0 deletions
diff --git a/conf/checksetup_answers.txt b/conf/checksetup_answers.txt
new file mode 100644
index 000000000..a1913ac7b
--- /dev/null
+++ b/conf/checksetup_answers.txt
@@ -0,0 +1,28 @@
+$answer{'ADMIN_EMAIL'} = 'vagrant@bmo-web.vm';
+$answer{'ADMIN_OK'} = 'Y';
+$answer{'ADMIN_PASSWORD'} = 'vagrant01!';
+$answer{'passwdqc_min'} = '8, 8, 8, 8, 8';
+$answer{'ADMIN_REALNAME'} = 'Vagrant User';
+$answer{'NO_PAUSE'} = 1;
+$answer{'apache_size_limit'} = 700000;
+$answer{'bugzilla_version'} = '1';
+$answer{'create_htaccess'} = '1';
+$answer{'db_check'} = 1;
+$answer{'diffpath'} = '/usr/bin';
+$answer{'index_html'} = 0;
+$answer{'interdiffbin'} = '/usr/bin/interdiff';
+$answer{'user_info_class'} = 'GitHubAuth,CGI';
+$answer{'user_verify_class'} = 'GitHubAuth,DB';
+$answer{'use_mailer_queue'} = 1;
+$answer{'useclassification'} = 1;
+$answer{'usebugaliases'} = 1;
+$answer{'upgrade_notification'} = 0;
+$answer{'usestatuswhiteboard'} = 1;
+$answer{'usetargetmilestone'} = 1;
+$answer{'webdotbase'} = '/usr/bin/dot';
+$answer{'auth_delegation'} = 1;
+$answer{'insidergroup'} = 'admin';
+$answer{'defaultpriority'} = '--';
+$answer{'defaultseverity'} = 'normal';
+$answer{'skin'} = 'Mozilla';
+$answer{'docs_urlbase'} = 'https://bmo.readthedocs.org/en/latest/';
diff --git a/conf/httpd.conf b/conf/httpd.conf
new file mode 100644
index 000000000..c0e8b7570
--- /dev/null
+++ b/conf/httpd.conf
@@ -0,0 +1,90 @@
+ServerName 127.0.0.1
+ServerTokens Prod
+ServerRoot "/etc/httpd"
+ServerAdmin root@localhost
+
+PidFile /tmp/httpd.pid
+Timeout 60
+KeepAlive Off
+MaxKeepAliveRequests 100
+KeepAliveTimeout 15
+
+StartServers ${HTTPD_StartServers}
+MinSpareServers ${HTTPD_MinSpareServers}
+MaxSpareServers ${HTTPD_MaxSpareServers}
+ServerLimit ${HTTPD_ServerLimit}
+MaxClients ${HTTPD_MaxClients}
+MaxRequestsPerChild ${HTTPD_MaxRequestsPerChild}
+
+Listen ${PORT}
+User app
+Group app
+
+LoadModule authz_host_module modules/mod_authz_host.so
+LoadModule log_config_module modules/mod_log_config.so
+LoadModule env_module modules/mod_env.so
+LoadModule mime_magic_module modules/mod_mime_magic.so
+LoadModule expires_module modules/mod_expires.so
+LoadModule deflate_module modules/mod_deflate.so
+LoadModule headers_module modules/mod_headers.so
+LoadModule setenvif_module modules/mod_setenvif.so
+LoadModule mime_module modules/mod_mime.so
+LoadModule negotiation_module modules/mod_negotiation.so
+LoadModule dir_module modules/mod_dir.so
+LoadModule alias_module modules/mod_alias.so
+LoadModule rewrite_module modules/mod_rewrite.so
+LoadModule perl_module modules/mod_perl.so
+
+UseCanonicalName Off
+<Directory />
+ Options FollowSymLinks
+ AllowOverride None
+</Directory>
+AccessFileName .htaccess
+<Files ~ "^\.ht">
+ Order allow,deny
+ Deny from all
+ Satisfy All
+</Files>
+TypesConfig /etc/mime.types
+DefaultType text/plain
+MIMEMagicFile conf/magic
+HostnameLookups Off
+<IfDefine NETCAT_LOGS>
+ ErrorLog "|/usr/bin/nc localhost ${LOGGING_PORT}"
+ <IfDefine ACCESS_LOGS>
+ TransferLog "|/usr/bin/nc localhost ${LOGGING_PORT}"
+ </IfDefine>
+</IfDefine>
+<IfDefine !NETCAT_LOGS>
+ ErrorLog /dev/stderr
+ <IfDefine ACCESS_LOGS>
+ TransferLog /dev/stdout
+ </IfDefine>
+</IfDefine>
+LogLevel warn
+LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
+LogFormat "%h %l %u %t \"%r\" %>s %b" common
+LogFormat "%{Referer}i -> %U" referer
+LogFormat "%{User-agent}i" agent
+ServerSignature Off
+AddDefaultCharset UTF-8
+
+Include /app/conf/env.conf
+
+PerlSwitches -wT
+PerlRequire /app/mod_perl.pl
+DirectoryIndex index.cgi
+DocumentRoot "/app"
+<IfDefine HTTPD_IN_SUBDIR>
+Alias "/bmo" "/app"
+</IfDefine>
+<IfDefine HTTPS>
+ SetEnv HTTPS on
+</IfDefine>
+<Directory "/app">
+ Options -Indexes -FollowSymLinks
+ AllowOverride None
+ Order allow,deny
+ Allow from all
+</Directory>