Compare commits

..

No commits in common. "9d062ef24b2b3087f06f2537fdadc6d054200b13" and "18ec10fe44515dbd60537bbb961981b5a4e068f4" have entirely different histories.

1 changed files with 17 additions and 12 deletions

View File

@ -73,7 +73,7 @@ You may also need:
Build & run Build & run
```shell ```shell
docker build --tag morss https://git.pictuga.com/pictuga/morss.git --no-cache --pull docker build --tag morss https://git.pictuga.com/pictuga/morss.git
docker run -p 8080:8080 morss docker run -p 8080:8080 morss
``` ```
@ -91,10 +91,16 @@ services:
Then execute Then execute
```shell ```shell
docker-compose build --no-cache --pull docker-compose build
docker-compose up docker-compose up
``` ```
To update:
- To get the latest code from the git repository, add `--no-cache` to the build
commands
- To update the base image (`alpine:latest`), add `--pull` to the build commands
## Run ## Run
morss will auto-detect what "mode" to use. morss will auto-detect what "mode" to use.
@ -340,22 +346,21 @@ Generic:
- `DEBUG=1`: to have some feedback from the script execution. Useful for - `DEBUG=1`: to have some feedback from the script execution. Useful for
debugging. debugging.
- `IGNORE_SSL=1`: to ignore SSL certs when fetch feeds and articles - `IGNORE_SSL=1`: to ignore SSL certs when fetch feeds and articles
- `DELAY` (seconds) sets the browser cache delay, only for HTTP clients - `DELAY` sets the browser cache delay, only for HTTP clients
- `TIMEOUT` (seconds) sets the HTTP timeout when fetching rss feeds and articles - `TIMEOUT` sets the HTTP timeout when fetching rss feeds and articles
When parsing long feeds, with a lot of items (100+), morss might take a lot of When parsing long feeds, with a lot of items (100+), morss might take a lot of
time to parse it, or might even run into a memory overflow on some shared time to parse it, or might even run into a memory overflow on some shared
hosting plans (limits around 10Mb), in which case you might want to adjust the hosting plans (limits around 10Mb), in which case you might want to adjust the
below settings via environment variables. below settings via environment variables.
- `MAX_TIME` (seconds) sets the maximum amount of time spent *fetching* - `MAX_TIME` sets the maximum amount of time spent *fetching* articles, more
articles, more time might be spent taking older articles from cache. `-1` for time might be spent taking older articles from cache. `-1` for unlimited.
unlimited.
- `MAX_ITEM` sets the maximum number of articles to fetch. `-1` for unlimited. - `MAX_ITEM` sets the maximum number of articles to fetch. `-1` for unlimited.
More articles will be taken from cache following the nexts settings. More articles will be taken from cache following the nexts settings.
- `LIM_TIME` (seconds) sets the maximum amount of time spent working on the feed - `LIM_TIME` sets the maximum amount of time spent working on the feed (whether
(whether or not it's already cached). Articles beyond that limit will be dropped or not it's already cached). Articles beyond that limit will be dropped from the
from the feed. `-1` for unlimited. feed. `-1` for unlimited.
- `LIM_ITEM` sets the maximum number of article checked, limiting both the - `LIM_ITEM` sets the maximum number of article checked, limiting both the
number of articles fetched and taken from cache. Articles beyond that limit will number of articles fetched and taken from cache. Articles beyond that limit will
be dropped from the feed, even if they're cached. `-1` for unlimited. be dropped from the feed, even if they're cached. `-1` for unlimited.
@ -374,8 +379,8 @@ To limit the size of the cache:
- `CACHE_SIZE` sets the target number of items in the cache (further items will - `CACHE_SIZE` sets the target number of items in the cache (further items will
be deleted but the cache might be temporarily bigger than that). Defaults to 1k be deleted but the cache might be temporarily bigger than that). Defaults to 1k
entries. entries.
- `CACHE_LIFESPAN` (seconds) sets how often the cache must be trimmed (i.e. cut - `CACHE_LIFESPAN` sets how often the cache must be trimmed (i.e. cut down to
down to the number of items set in `CACHE_SIZE`). Defaults to 1min. the number of items set in `CACHE_SIZE`). Defaults to 1min.
### Content matching ### Content matching