mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-07 20:17:02 +03:00
Added default config for docker
This commit is contained in:
@@ -3,7 +3,7 @@ WORKDIR /usr/src/app
|
|||||||
COPY package.json .
|
COPY package.json .
|
||||||
RUN npm install
|
RUN npm install
|
||||||
COPY index.js .
|
COPY index.js .
|
||||||
COPY src .
|
COPY src src
|
||||||
COPY entrypoint.sh .
|
COPY entrypoint.sh .
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
ENTRYPOINT ./entrypoint.sh
|
CMD ./entrypoint.sh
|
||||||
@@ -1,4 +1,39 @@
|
|||||||
#!bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
cp /etc/sponsorblock/config.json .
|
echo 'Entrypoint script'
|
||||||
|
cd /usr/src/app
|
||||||
|
cp /etc/sponsorblock/config.json . || cat <<EOF > config.json
|
||||||
|
{
|
||||||
|
"port": 8080,
|
||||||
|
"mysql": {
|
||||||
|
"host": "127.0.0.1",
|
||||||
|
"port": 3306,
|
||||||
|
"database": "sponsorblock",
|
||||||
|
"user": "sponsorblock",
|
||||||
|
"password": "sponsorblock"
|
||||||
|
},
|
||||||
|
"privateMysql": {
|
||||||
|
"host": "127.0.0.1",
|
||||||
|
"port": 3306,
|
||||||
|
"database": "sponsorblock_private",
|
||||||
|
"user": "sponsorblock",
|
||||||
|
"password": "sponsorblock"
|
||||||
|
},
|
||||||
|
"globalSalt": "",
|
||||||
|
"adminUserID": "",
|
||||||
|
"youtubeAPIKey": "",
|
||||||
|
"discordReportChannelWebhookURL": null,
|
||||||
|
"discordFirstTimeSubmissionsWebhookURL": null,
|
||||||
|
"discordAutoModWebhookURL": null,
|
||||||
|
"behindProxy": true,
|
||||||
|
"db": null,
|
||||||
|
"privateDB": null,
|
||||||
|
"createDatabaseIfNotExist": true,
|
||||||
|
"schemaFolder": null,
|
||||||
|
"dbSchema": null,
|
||||||
|
"privateDBSchema": null,
|
||||||
|
"mode": "development",
|
||||||
|
"readOnly": false
|
||||||
|
}
|
||||||
|
EOF
|
||||||
node index.js
|
node index.js
|
||||||
Reference in New Issue
Block a user