The plebbit-previewer allows users to share links on sites like Twitter, Telegram, etc. and generate a preview. E.g. the URL https://plebbitapp.eth.limo/#/p/reddit-screenshots.eth/c/QmbJuRPxPhncxkiGLEcCaFvawoGuoZdrwp26aPNzkSUYHa becomes https://pleb.bz/p/reddit-screenshots.eth/c/QmbJuRPxPhncxkiGLEcCaFvawoGuoZdrwp26aPNzkSUYHa which will generate a preview and redirect the user to the app.
- /c/:commentCid
- /p/:subplebbitAddress/c/:commentCid
- /:commentCid
- /p/:subplebbitAddress/c/:commentCid?redirect=plebchan.eth.limo
npm install
npm run start
npm install
scripts/start-docker.sh
A javascript file like:
module.exports = {
port: 3924,
plebbitOptions: {
ipfsGatewayUrls: ['https://ipfs.io'],
},
// whitelisted sites that are allowed to redirect
// the first site is the default
redirects: [
'plebbitapp.eth.limo'
]
}