summaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChloe Kudryavtsev <toast@toast.cafe>2019-11-23 20:32:01 -0500
committerChloe Kudryavtsev <toast@toast.cafe>2019-11-23 20:32:01 -0500
commit75cc89d8762427eb8f8f84c8b5e7c1a41f8beb88 (patch)
tree8202d048710a5c5d11b8d0c98387bf12f30f0dd8 /server
parentRemove deprecated comments (diff)
Update server utilities (no more health checks)
Diffstat (limited to 'server')
-rw-r--r--server/brpaste.caddy4
-rw-r--r--server/brpaste.confd3
-rwxr-xr-xserver/brpaste.initd13
3 files changed, 5 insertions, 15 deletions
diff --git a/server/brpaste.caddy b/server/brpaste.caddy
index 6c10ebd..4eaf630 100644
--- a/server/brpaste.caddy
+++ b/server/brpaste.caddy
@@ -1,5 +1,3 @@
paste.example.com {
- proxy / localhost:8080 {
- health_check /health
- }
+ proxy / localhost:8080
}
diff --git a/server/brpaste.confd b/server/brpaste.confd
index 2755b94..7e3acd5 100644
--- a/server/brpaste.confd
+++ b/server/brpaste.confd
@@ -2,8 +2,7 @@ BRPASTE_USER=nobody
BRPASTE_GROUP=nobody
# defaults to localhost, set to :: to listen on all
-#BRPASTE_IP=::
-#BRPASTE_PORT=8080
+#BRPASTE_ADDR=:8080
# if your redis is listening on a different address
# accepts redis:// style strings
diff --git a/server/brpaste.initd b/server/brpaste.initd
index ab024b0..d4f094d 100755
--- a/server/brpaste.initd
+++ b/server/brpaste.initd
@@ -1,21 +1,14 @@
#!/sbin/openrc-run
supervisor=supervise-daemon
-healthcheck_timer=30
respawn_delay=30
+command_user="nobody:nobody"
command=/usr/bin/brpaste
command_args="\
- ${BRPASTE_USER:+--uid $BRPASTE_USER} ${BRPASTE_GROUP:+--gid $BRPASTE_GROUP} \
- ${BRPASTE_REDIS:+-r $BRPASTE_REDIS} \
- ${BRPASTE_IP:+-b $BRPASTE_IP} ${BRPASTE_PORT:+-p $BRPASTE_PORT}"
+ ${BRPASTE_REDIS:+-redis $BRPASTE_REDIS} \
+ ${BRPASTE_ADDR:+-bind $BRPASTE_ADDR}
depend() {
need redis
}
-
-health() {
- curl -s "${BRPASTE_IP:-localhost}:${BRPASTE_PORT:-8080}/health"
-}
-
-unhealthy() {}