Update README
This commit is contained in:
parent
1de7c0caf9
commit
66f3ab0663
40
README.md
40
README.md
@ -28,6 +28,29 @@ BCH: qq4ptclkzej5eza6a50et5ggc58hxsq5aylqut2npk
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
|
### Docker:
|
||||||
|
|
||||||
|
#### Build and start cluster:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ docker-compose up
|
||||||
|
```
|
||||||
|
|
||||||
|
And visit `localhost:3000` in your browser.
|
||||||
|
|
||||||
|
#### Rebuild cluster:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ docker-compose build
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Delete data and rebuild:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ docker volume rm invidious_postgresdata
|
||||||
|
$ docker-compose build
|
||||||
|
```
|
||||||
|
|
||||||
### Installing [Crystal](https://github.com/crystal-lang/crystal):
|
### Installing [Crystal](https://github.com/crystal-lang/crystal):
|
||||||
|
|
||||||
#### On Arch:
|
#### On Arch:
|
||||||
@ -74,8 +97,21 @@ $ sudo pacman -S imagemagick librsvg
|
|||||||
## Usage:
|
## Usage:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ crystal build src/invidious.cr
|
$ crystal build src/invidious.cr --release
|
||||||
$ ./invidious
|
$ ./invidious -h
|
||||||
|
Usage: invidious [arguments]
|
||||||
|
-b HOST, --bind HOST Host to bind (defaults to 0.0.0.0)
|
||||||
|
-p PORT, --port PORT Port to listen for connections (defaults to 3000)
|
||||||
|
-s, --ssl Enables SSL
|
||||||
|
--ssl-key-file FILE SSL key file
|
||||||
|
--ssl-cert-file FILE SSL certificate file
|
||||||
|
-h, --help Shows this help
|
||||||
|
-t THREADS, --crawl-threads=THREADS
|
||||||
|
Number of threads for crawling (default: 1)
|
||||||
|
-c THREADS, --channel-threads=THREADS
|
||||||
|
Number of threads for refreshing channels (default: 1)
|
||||||
|
-v THREADS, --video-threads=THREADS
|
||||||
|
Number of threads for refreshing videos (default: 1)
|
||||||
```
|
```
|
||||||
|
|
||||||
Or for development:
|
Or for development:
|
||||||
|
Loading…
Reference in New Issue
Block a user