-
Notifications
You must be signed in to change notification settings - Fork 142
/
Copy pathcombust.conf.tmpl
128 lines (100 loc) · 3.34 KB
/
combust.conf.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
perl = /usr/bin/perl
servername = ntppool
port = {{getenv "port" "8299"}}
{{ $mode := or (getenv "deployment_mode") "test"}}
# external_port. Set to a non-zero value to set the port number used
# for external redirects (301's, 302's)
external_port = 80
# source ip's allowed to be frontend proxies, where the
# X-Forwarded-For header is honored. Defaults to 127.0.0.1. The
# special option "*" will allow any IP to set the source IP (use only
# when the httpd is "firewalled in".
# proxyip_forwarders = 127.0.0.1, 10.15.0.10, 10.15.0.11,
proxyip_forwarders = 127.0.0.1, 10.42.0.0/16, {{ getenv "proxyip_forwarders" }}
docs_name = docs
# add Apache::Reload to the httpd configuration; good for development! (default 0)
# 0 = disabled, 1 = enabled, 2 = enabled with debugging on
{{ if eq $mode "devel" }}
apache_reload = 0
{{ else }}
apache_reload = 0
{{ end }}
# use Template::Timer to insert timing information in the TT output (default 0)
# template_timer = 1
# path for log files and the httpd.pid file
# log_path = apache/logs
log_path = stdout
# path for temporary work files (compiled template cache etc)
# work_path = tmp
work_path = /var/ntppool/
# Gearman Job Servers
#job_servers = {{ getenv "GEARMAND_SERVICE_HOST" }}:{{ getenv "GEARMAND_SERVICE_PORT" }}
use_cronolog = 0
[database-ntppool]
# configure database access for use with the db_open() function
data_source = {{ getenv "db_dsn" }}
user = {{ getenv "db_user" }}
password = {{ getenv "db_pass" }}
time_zone = UTC
default=1
[database-combust]
alias = ntppool
# "Apache" configuration, also supported with the Plack setup
[apache]
{{ $httpd_maxclients := getenv "httpd_maxclients" }}
{{ if $httpd_maxclients }}
maxclients = {{ $httpd_maxclients }}
{{ else }}
{{ if eq $mode "prod" }}
maxclients = 15
{{ else }}
maxclients = 4
{{ end }}
{{ end }}
keepalive = On
keepalivetimeout = 5
# Configure sites
[ntppool]
{{ $names := getenv "web_hostname" | strings.Split "," }}
servername = {{ index $names 0 }}
{{ if gt (len $names) 1 }}{{ $names = coll.GoSlice $names 1 }}
aliases = {{ join $names ", " }}
{{ end }}
pool_domain = {{ getenv "pool_domain" }}
static_base = {{ getenv "static_base" }}
{{ $www_cname := or (getenv "www_cname") ""}}
{{ if gt (len $www_cname) 0 }}
www_cname = {{ $www_cname }}
{{ end }}
deployment_mode = {{ $mode }}
email_default = {{ getenv "email_default" }}
email_support = {{ getenv "email_support" }}
email_help = {{ getenv "email_help" }}
email_vendors = {{ getenv "email_vendors" }}
email_notifications = {{ getenv "email_notifications" }}
account_id_key = {{ getenv "account_id_key" }}
vendor_zone_id_key = {{ getenv "vendor_zone_id_key" }}
{{ if eq (getenv "web_tls") "yes" }}
ssl_only = 1
port = 443
external_port = 443
{{ end }}
#[ntpgraphs]
#servername = graphs-beta.grundclock.com
#deployment_mode = {{ $mode }}
[manage]
{{ $names := getenv "manage_hostname" | strings.Split "," }}
servername = {{ index $names 0 }}
{{ if gt (len $names) 1 }}{{ $names = coll.GoSlice $names 1 }}
aliases = {{ join $names ", " }}
{{ end }}
deployment_mode = {{ $mode }}
static_base = {{ getenv "static_base" }}
{{ if eq (getenv "manage_tls") "yes" }}
ssl_only = 1
port = 443
external_port = 443
{{ end }}
auth0_domain = {{ getenv "auth0_domain" }}
auth0_client = {{ getenv "auth0_client" }}
auth0_secret = {{ getenv "auth0_secret" }}