mirror of https://gitgud.io/fatchan/jschan.git
parent
06bac65200
commit
1b1883be1e
9 changed files with 59 additions and 23 deletions
@ -1,15 +0,0 @@ |
|||||||
{ |
|
||||||
"following": [ |
|
||||||
"https://example.com/webring.json" |
|
||||||
], |
|
||||||
"blacklist": [ |
|
||||||
"badwebsite.com" |
|
||||||
], |
|
||||||
"logo": [ |
|
||||||
"https://yourdomain.com/favicon.ico" |
|
||||||
], |
|
||||||
"proxy": { |
|
||||||
"enabled": false, |
|
||||||
"address": "socks5h://localhost:9050" |
|
||||||
} |
|
||||||
} |
|
@ -0,0 +1,11 @@ |
|||||||
|
'use strict'; |
||||||
|
|
||||||
|
const fs = require('fs-extra'); |
||||||
|
|
||||||
|
module.exports = async(db, redis) => { |
||||||
|
console.log('remove need for configs/webring'); |
||||||
|
const webring = require(__dirname+'/../configs/template.js.example'); |
||||||
|
const settings = await redis.get('globalsetings'); |
||||||
|
const newSettings = { ...settings, ...webring }; |
||||||
|
redis.set('globalsettings', newSettings); |
||||||
|
}; |
Loading…
Reference in new issue