mirror of
https://codeberg.org/tacerus/teddit.git
synced 2024-11-29 19:29:27 +01:00
fix newlines
This commit is contained in:
parent
ce6c306b3a
commit
0ae52d9fe9
@ -51,22 +51,28 @@ Community instances:
|
|||||||
For example:
|
For example:
|
||||||
`# curl -sL https://deb.nodesource.com/setup_14.x | bash - && apt-get install -y nodejs`
|
`# curl -sL https://deb.nodesource.com/setup_14.x | bash - && apt-get install -y nodejs`
|
||||||
1. Install [redis-server](https://redis.io/) and [ffmpeg](https://ffmpeg.org/)
|
1. Install [redis-server](https://redis.io/) and [ffmpeg](https://ffmpeg.org/)
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
`# apt install redis-server ffmpeg`
|
`# apt install redis-server ffmpeg`
|
||||||
Leave ffmpeg out if you don't want video support.
|
Leave ffmpeg out if you don't want video support.
|
||||||
|
|
||||||
1. `$ git clone https://codeberg.org/teddit/teddit`
|
1. `$ git clone https://codeberg.org/teddit/teddit`
|
||||||
1. `$ cd teddit`
|
1. `$ cd teddit`
|
||||||
1. `$ npm install --no-optional`
|
1. `$ npm install --no-optional`
|
||||||
1. Edit `config.js.template` to suit your environment. After done, rename it to config.js.
|
1. Edit `config.js.template` to suit your environment. After done, rename it to `config.js`.
|
||||||
1. Edit redis.conf file and set maxmemory value to suit your environment (e.g. 75% of your total RAM).
|
1. Edit redis.conf file and set maxmemory value to suit your environment (e.g. 75% of your total RAM).
|
||||||
|
|
||||||
`# nano /etc/redis/redis.conf`
|
`# nano /etc/redis/redis.conf`
|
||||||
Add new lines:
|
Add new lines:
|
||||||
`maxmemory 2gb`
|
`maxmemory 2gb`
|
||||||
`maxmemory-policy volatile-ttl`
|
`maxmemory-policy volatile-ttl`
|
||||||
Save and exit.
|
Save and exit.
|
||||||
|
|
||||||
1. Restart redis
|
1. Restart redis
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
`systemctl restart redis`
|
`systemctl restart redis`
|
||||||
|
|
||||||
1. `$ node app.js`
|
1. `$ node app.js`
|
||||||
|
|
||||||
Teddit should be now running.
|
Teddit should be now running.
|
||||||
|
Loading…
Reference in New Issue
Block a user