Add flag to purge dead accounts on startup

This commit is contained in:
Ethan O'Brien
2024-10-18 16:08:05 -05:00
parent e0730a9fa6
commit 993f6f1e39
5 changed files with 67 additions and 10 deletions

View File

@ -6,19 +6,21 @@ services:
build:
dockerfile: "./Dockerfile"
environment:
PORT: 8081
PORT: 8080
DIRECTORY: /data/
HTTPS: false
NPPS4_ADDRESS: "http://127.0.0.1:51376"
MAXTIME: 1717045200 # A day before global EOS
HIDDEN: false # Will disable the webui
#Everything below is for the "Help" page
ANDROID_GLOBAL: "link.to/patched/android/global.apk"
ANDROID_JAPAN: "link.to/patched/android/japan.apk"
IOS_GLOBAL: "link.to/ios/global.ipa"
IOS_JAPAN: "link.to/ios/japan.ipa"
ASSET_URL: "link.to/client/assets/"
# Everything below is for the "Help" page
#ANDROID_GLOBAL: "link.to/patched/android/global.apk"
#ANDROID_JAPAN: "link.to/patched/android/japan.apk"
#IOS_GLOBAL: "link.to/ios/global.ipa"
#IOS_JAPAN: "link.to/ios/japan.ipa"
#ASSET_URL: "link.to/client/assets/"
ports:
- 8081:8081
- 8080:8080
volumes:
- ./data:/data
restart: unless-stopped

View File

@ -11,4 +11,6 @@ hidden=$([ "$HIDDEN" = "true" ] && echo "--hidden" || echo "")
maxTime="${MAXTIME:-0}"
/root/ew/ew --path $directory --port $port --npps4 $npps4 $hidden $https --global-android "$ANDROID_GLOBAL" --japan-android "$ANDROID_JAPAN" --global-ios "$IOS_GLOBAL" --japan-ios "$IOS_JAPAN" --assets-url "$ASSET_URL" --max-time $maxTime
purge=$([ "$PURGE" = "true" ] && echo "--purge" || echo "")
/root/ew/ew --path $directory --port $port --npps4 $npps4 $purge $hidden $https --global-android "$ANDROID_GLOBAL" --japan-android "$ANDROID_JAPAN" --global-ios "$IOS_GLOBAL" --japan-ios "$IOS_JAPAN" --assets-url "$ASSET_URL" --max-time $maxTime