From f4d445b712dbb1b0e6bf20a548f457e2d4a44897 Mon Sep 17 00:00:00 2001 From: Mike Metcalfe Date: Thu, 3 Oct 2024 15:50:02 +0200 Subject: [PATCH] Moved conf files to docs, part 2 --- docs/staging.nginx.conf | 19 +++++++++++++++++++ docs/staging.supervisord.conf | 29 +++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 docs/staging.nginx.conf create mode 100644 docs/staging.supervisord.conf diff --git a/docs/staging.nginx.conf b/docs/staging.nginx.conf new file mode 100644 index 0000000..3775974 --- /dev/null +++ b/docs/staging.nginx.conf @@ -0,0 +1,19 @@ +upstream backend { + server 127.0.0.1:8080 max_fails=3 fail_timeout=30s; + server 127.0.0.1:8081 max_fails=3 fail_timeout=30s; +} + +server { + listen 80; + server_name mikelap; + + location / { + proxy_set_header X-Url-Scheme $scheme; + proxy_set_header Host $http_host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + rewrite ^(.*)$ /VirtualHostBase/$scheme/$host/staging/VirtualHostRoot/$1 break; + proxy_pass http://backend; + } +} + diff --git a/docs/staging.supervisord.conf b/docs/staging.supervisord.conf new file mode 100644 index 0000000..850b05c --- /dev/null +++ b/docs/staging.supervisord.conf @@ -0,0 +1,29 @@ +[program:staging_zeoserver] +command=/home/zope/instances/staging/zeocluster/bin/zeoserver fg +directory=/home/zope/instances/staging/zeocluster +redirect_stderr=false +autostart=true +autorestart=unexpected +user=senaite +startsecs=5 +stopwaitsecs=10 + +[program:staging_client1] +command=/home/zope/instances/staging/zeocluster/bin/client1 console +directory=/home/zope/instances/staging/zeocluster +redirect_stderr=false +autostart=true +autorestart=unexpected +user=zope +startsecs=5 +stopwaitsecs=10 + +[program:staging_client2] +command=/home/zope/instances/staging/zeocluster/bin/client2 console +directory=/home/zope/instances/staging/zeocluster +redirect_stderr=false +autostart=true +autorestart=unexpected +user=zope +startsecs=5 +stopwaitsecs=10