summaryrefslogtreecommitdiff
path: root/templates/gunicorn.conf.py.epp
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-04-24 17:05:29 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2023-04-24 17:05:29 +0200
commit538b7ff0c8125a3f412154807e3425127968448f (patch)
treed998b3c00dc019a6ed16625b72a682c10708a5b0 /templates/gunicorn.conf.py.epp
parentInitial commit. (diff)
downloadgunicorn-538b7ff0c8125a3f412154807e3425127968448f.tar.gz
gunicorn-538b7ff0c8125a3f412154807e3425127968448f.tar.xz
Add everything.
Diffstat (limited to 'templates/gunicorn.conf.py.epp')
-rw-r--r--templates/gunicorn.conf.py.epp18
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 %><%- } -%>