Skip to content

Commit

Permalink
Moved conf files to docs, part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejmets committed Oct 3, 2024
1 parent 4308ab3 commit f4d445b
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docs/staging.nginx.conf
Original file line number Diff line number Diff line change
@@ -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;
}
}

29 changes: 29 additions & 0 deletions docs/staging.supervisord.conf
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f4d445b

Please sign in to comment.