summaryrefslogtreecommitdiff
path: root/templates/gunicorn.conf.py.epp
blob: f9b443d1b90de43cc8e1dd5aaaaf9c9163cece47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<%- | String $address,
      String $proc_name,
      Integer $workers,
      String $wsgi_app,
      Variant[String, Integer] $user,
      Variant[String, Integer] $group,
| -%>

bind = "<%= $address %>"
proc_name = "<%= $proc_name %>"
workers = "<%= $workers %>"

wsgi_app = "<%= $wsgi_app %>"

user = <% if $user =~ String { -%>"<%= $user %>"
<%- } else { -%><%= $user %><%- } %>
group = <% if $group =~ String { -%>"<%= $group %>"
<%- } else { -%><%= $group %><%- } -%>