diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/gunicorn.conf.py.epp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/templates/gunicorn.conf.py.epp b/templates/gunicorn.conf.py.epp new file mode 100644 index 0000000..f9b443d --- /dev/null +++ b/templates/gunicorn.conf.py.epp @@ -0,0 +1,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 %><%- } -%> |