mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2026-01-30 06:10:52 +03:00
Prepare dockerfile for use, allow configuring via env vars
This commit is contained in:
@@ -2,25 +2,11 @@
|
||||
set -e
|
||||
echo 'Entrypoint script'
|
||||
cd /usr/src/app
|
||||
|
||||
# blank config, use defaults
|
||||
cp /etc/sponsorblock/config.json . || cat <<EOF > config.json
|
||||
{
|
||||
"port": 8080,
|
||||
"globalSalt": "[CHANGE THIS]",
|
||||
"adminUserID": "[CHANGE THIS]",
|
||||
"youtubeAPIKey": null,
|
||||
"discordReportChannelWebhookURL": null,
|
||||
"discordFirstTimeSubmissionsWebhookURL": null,
|
||||
"discordAutoModWebhookURL": null,
|
||||
"proxySubmission": null,
|
||||
"behindProxy": "X-Forwarded-For",
|
||||
"db": "./databases/sponsorTimes.db",
|
||||
"privateDB": "./databases/private.db",
|
||||
"createDatabaseIfNotExist": true,
|
||||
"schemaFolder": "./databases",
|
||||
"dbSchema": "./databases/_sponsorTimes.db.sql",
|
||||
"privateDBSchema": "./databases/_private.db.sql",
|
||||
"mode": "development",
|
||||
"readOnly": false
|
||||
}
|
||||
EOF
|
||||
node dist/index.js
|
||||
|
||||
node dist/index.js
|
||||
Reference in New Issue
Block a user