summaryrefslogtreecommitdiff
path: root/sitemodules/profiles/templates/sniproxy/sniproxy.conf.epp
blob: 979113983afde6683cf1563eb23be4588c2e3782 (plain)
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
<%- | Array[String] $https_forwards = [] | -%>
# THIS FILE IS MANAGED BY PUPPET, MANUAL CHANGES WILL BE OVERWRITTEN AT THE
# NEXT PUPPET RUN.
#
# sniproxy configuration file
# lines that start with # are comments
# lines with only white space are ignored

user daemon
pidfile /var/run/sniproxy.pid

error_log {
    # Log to the daemon syslog facility
    syslog daemon

    # Alternatively we could log to file
    #filename /var/log/sniproxy/sniproxy.log

    # Control the verbosity of the log
    priority notice
}

listen 80 {
    proto http
    table http_hosts
    # Fallback backend server to use if we can not parse the client request
    fallback 127.0.0.1:8080

    access_log {
        filename /var/log/sniproxy/http_access.log
        priority notice
    }
}

listen 443 {
    proto tls
    table https_hosts

    access_log {
        filename /var/log/sniproxy/https_access.log
        priority notice
    }
}

table http_hosts {
}

table https_hosts {
<%- $https_forwards.each |$forward| { %>
    <%= $forward -%>
<% } %>
}