Restart time is not configurable

This commit is contained in:
Raynor 2022-12-22 14:10:36 +00:00
parent d2d7f4f621
commit 1d7a2faf0b
2 changed files with 18 additions and 8 deletions

View file

@ -1,12 +1,21 @@
fakeRelayKey="YOUR--FAKE---RELAY---KEY"
fakeRelayHost="https://your-fake-relay-url.YourPetMastodon.com"
## Do you want to send URIs to fake relay or just log them?
runFirehose=true
## Set to false if you don't want to send URIs to your fakerelay.
runFirehose=false
# Maximum number of curls processes to run at once
maxCurls=50
## Maximum number of curl instances to be allowed to run. This is only used
## if you send data to the relay
maxCurls=75
minURIs=100
# Minimum number of URIs to have before you process a batch.
# Don't put this too low or you send over lots of duplicates and burn up your machine
minURIs=100
## Archive mode will save the json stream but not parse it, not even into URIs
## This will greatly save resources, but obviously will not send it to
## the relay.
archive=false
## Restart timeout
## Put whatever amount of time here you want the container to restart after
## This will kill any hanging curl processes that may be taking up uncessary
## resources
restartTimeout=1h

View file

@ -94,5 +94,6 @@ fi
## We don't have a health check, so just exit after an hour
# If your docker file has restart: always on this should gracefully exit, and
# then restart
sleep 4h
echo "[INFO] Container restart timoe is $restartTimeout"
sleep $restartTimeout
exit 0