fix(rsshub): multiple config adjustments
This commit is contained in:
parent
6685669209
commit
4b1224ac1a
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "RSSHub",
|
"name": "RSSHub",
|
||||||
"available": true,
|
"available": true,
|
||||||
"port": 8220,
|
"port": 8223,
|
||||||
"exposable": true,
|
"exposable": true,
|
||||||
"id": "rsshub",
|
"id": "rsshub",
|
||||||
"description": "RSSHub is an open source, easy to use, and extensible RSS feed generator. It's capable of generating RSS feeds from pretty much everything.",
|
"description": "RSSHub is an open source, easy to use, and extensible RSS feed generator. It's capable of generating RSS feeds from pretty much everything.",
|
||||||
|
@ -22,5 +22,6 @@
|
||||||
"required": false,
|
"required": false,
|
||||||
"env_variable": "ACCESS_KEY"
|
"env_variable": "ACCESS_KEY"
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"supported_architectures": ["amd64", "arm64"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,7 @@ CACHE_TYPE="redis"
|
||||||
#CACHE_REQUEST_TIMEOUT=60
|
#CACHE_REQUEST_TIMEOUT=60
|
||||||
#CACHE_EXPIRE=300
|
#CACHE_EXPIRE=300
|
||||||
#CACHE_CONTENT_EXPIRE=3600
|
#CACHE_CONTENT_EXPIRE=3600
|
||||||
REDIS_URL="redis://redis:6379/"
|
REDIS_URL="redis://rsshub_redis:6379/"
|
||||||
#MEMORY_MAX=256
|
#MEMORY_MAX=256
|
||||||
|
|
||||||
#################################
|
#################################
|
||||||
|
@ -88,7 +88,7 @@ REDIS_URL="redis://redis:6379/"
|
||||||
#ENABLE_CLUSTER=false
|
#ENABLE_CLUSTER=false
|
||||||
NODE_ENV="production"
|
NODE_ENV="production"
|
||||||
#NODE_NAME=""
|
#NODE_NAME=""
|
||||||
PUPPETEER_WS_ENDPOINT="ws://browserless:3000"
|
PUPPETEER_WS_ENDPOINT="ws://rsshub_browserless:3000"
|
||||||
#CHROMIUM_EXECUTABLE_PATH=""
|
#CHROMIUM_EXECUTABLE_PATH=""
|
||||||
#TITLE_LENGTH_LIMIT=150
|
#TITLE_LENGTH_LIMIT=150
|
||||||
#OPENAI_API_KEY=""
|
#OPENAI_API_KEY=""
|
||||||
|
|
|
@ -1,16 +1,14 @@
|
||||||
version: '3.9'
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
rsshub:
|
rsshub:
|
||||||
image: diygod/rsshub:2024-04-17
|
image: diygod/rsshub:2024-04-17
|
||||||
container_name: rsshub_main
|
container_name: rsshub
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- ${APP_PORT}:1200
|
- ${APP_PORT}:1200
|
||||||
environment:
|
environment:
|
||||||
TZ: ${TZ}
|
TZ: ${TZ}
|
||||||
env_file:
|
env_file:
|
||||||
- /app-data/rsshub/data/app.env
|
- ${APP_DATA_DIR}/data/app.env
|
||||||
networks:
|
networks:
|
||||||
- tipi_main_network
|
- tipi_main_network
|
||||||
depends_on:
|
depends_on:
|
||||||
|
@ -19,28 +17,28 @@ services:
|
||||||
labels:
|
labels:
|
||||||
# Main
|
# Main
|
||||||
traefik.enable: true
|
traefik.enable: true
|
||||||
traefik.http.middlewares.rss-web-redirect.redirectscheme.scheme: https
|
traefik.http.middlewares.rsshub-web-redirect.redirectscheme.scheme: https
|
||||||
traefik.http.services.rsshub.loadbalancer.server.port: 1200
|
traefik.http.services.rsshub.loadbalancer.server.port: 1200
|
||||||
# Web
|
# Web
|
||||||
traefik.http.routers.rss-insecure.rule: Host(`${APP_DOMAIN}`)
|
traefik.http.routers.rsshub-insecure.rule: Host(`${APP_DOMAIN}`)
|
||||||
traefik.http.routers.rss-insecure.entrypoints: web
|
traefik.http.routers.rsshub-insecure.entrypoints: web
|
||||||
traefik.http.routers.rss-insecure.service: rsshub
|
traefik.http.routers.rsshub-insecure.service: rsshub
|
||||||
traefik.http.routers.rss-insecure.middlewares: rss-web-redirect
|
traefik.http.routers.rsshub-insecure.middlewares: rsshub-web-redirect
|
||||||
# Websecure
|
# Websecure
|
||||||
traefik.http.routers.rss.rule: Host(`${APP_DOMAIN}`)
|
traefik.http.routers.rsshub.rule: Host(`${APP_DOMAIN}`)
|
||||||
traefik.http.routers.rss.entrypoints: websecure
|
traefik.http.routers.rsshub.entrypoints: websecure
|
||||||
traefik.http.routers.rss.service: rsshub
|
traefik.http.routers.rsshub.service: rsshub
|
||||||
traefik.http.routers.rss.tls.certresolver: myresolver
|
traefik.http.routers.rsshub.tls.certresolver: myresolver
|
||||||
# Local domain
|
# Local domain
|
||||||
traefik.http.routers.rss-local-insecure.rule: Host(`rsshub.${LOCAL_DOMAIN}`)
|
traefik.http.routers.rsshub-local-insecure.rule: Host(`rsshub.${LOCAL_DOMAIN}`)
|
||||||
traefik.http.routers.rss-local-insecure.entrypoints: web
|
traefik.http.routers.rsshub-local-insecure.entrypoints: web
|
||||||
traefik.http.routers.rss-local-insecure.service: rsshub
|
traefik.http.routers.rsshub-local-insecure.service: rsshub
|
||||||
traefik.http.routers.rss-local-insecure.middlewares: rss-web-redirect
|
traefik.http.routers.rsshub-local-insecure.middlewares: rsshub-web-redirect
|
||||||
# Local domain secure
|
# Local domain secure
|
||||||
traefik.http.routers.rss-local.rule: Host(`rsshub.${LOCAL_DOMAIN}`)
|
traefik.http.routers.rsshub-local.rule: Host(`rsshub.${LOCAL_DOMAIN}`)
|
||||||
traefik.http.routers.rss-local.entrypoints: websecure
|
traefik.http.routers.rsshub-local.entrypoints: websecure
|
||||||
traefik.http.routers.rss-local.service: rsshub
|
traefik.http.routers.rsshub-local.service: rsshub
|
||||||
traefik.http.routers.rss-local.tls: true
|
traefik.http.routers.rsshub-local.tls: true
|
||||||
|
|
||||||
browserless:
|
browserless:
|
||||||
image: browserless/chrome
|
image: browserless/chrome
|
||||||
|
|
|
@ -1,7 +1,3 @@
|
||||||
# RSSHub
|
|
||||||
|
|
||||||
![](https://camo.githubusercontent.com/ceaf8f7b5c2b0f5b71013f5553cd4e71dfbc47787928a2ec1cfe0e41a7a0b99c/68747470733a2f2f646f63732e7273736875622e6170702f696d672f6c6f676f2e706e67)
|
|
||||||
|
|
||||||
## Introduction
|
## Introduction
|
||||||
|
|
||||||
Introduction
|
Introduction
|
||||||
|
@ -14,7 +10,6 @@ RSSHub can be used with browser extension [RSSHub Radar](https://github.com/DIYg
|
||||||
|
|
||||||
[English docs](https://docs.rsshub.app/) | [Telegram Group](https://t.me/rsshub) | [Telegram Channel](https://t.me/awesomeRSSHub) | [Twitter](https://twitter.com/intent/follow?screen_name=_RSSHub) | [中文文档](https://docs.rsshub.app/zh/)
|
[English docs](https://docs.rsshub.app/) | [Telegram Group](https://t.me/rsshub) | [Telegram Channel](https://t.me/awesomeRSSHub) | [Twitter](https://twitter.com/intent/follow?screen_name=_RSSHub) | [中文文档](https://docs.rsshub.app/zh/)
|
||||||
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
In order to generate a feed, a valid URL with parameters has to be appended to the main domain for your RSSHub instance, varying with each different app. More on the how-to's for each supported service or app can be found on [https://docs.rsshub.app/guide/](https://docs.rsshub.app/guide/), and on [https://docs.rsshub.app/guide/parameters](https://docs.rsshub.app/guide/parameters) for filtering/sorting/limiting your feed in a given URL.
|
In order to generate a feed, a valid URL with parameters has to be appended to the main domain for your RSSHub instance, varying with each different app. More on the how-to's for each supported service or app can be found on [https://docs.rsshub.app/guide/](https://docs.rsshub.app/guide/), and on [https://docs.rsshub.app/guide/parameters](https://docs.rsshub.app/guide/parameters) for filtering/sorting/limiting your feed in a given URL.
|
||||||
|
@ -29,7 +24,7 @@ More info related to available configuration envvars for RSSHub can be found on
|
||||||
|
|
||||||
RSSHub provides an access control feature for restricting which user generates a feed within your instance. This can be enabled with the envvar `ACCESS_KEY`, which can be configured either at the installation step through Runtipi's App Store or via the envvars at `docker-compose.yml` or `app.env` for the RSSHub app. Default value is empty (`""`), which means no extra key is required in order to access a feed through the URLs.
|
RSSHub provides an access control feature for restricting which user generates a feed within your instance. This can be enabled with the envvar `ACCESS_KEY`, which can be configured either at the installation step through Runtipi's App Store or via the envvars at `docker-compose.yml` or `app.env` for the RSSHub app. Default value is empty (`""`), which means no extra key is required in order to access a feed through the URLs.
|
||||||
|
|
||||||
Note that `ACCESS_KEY` is enabled **globally**, but access can be controlled granularly on an app-by-app basis by only giving the specific app *access code* to a user, as explained through the diagram found on [https://docs.rsshub.app/deploy/config#access-control-configurations](https://docs.rsshub.app/deploy/config#access-control-configurations).
|
Note that `ACCESS_KEY` is enabled **globally**, but access can be controlled granularly on an app-by-app basis by only giving the specific app _access code_ to a user, as explained through the diagram found on [https://docs.rsshub.app/deploy/config#access-control-configurations](https://docs.rsshub.app/deploy/config#access-control-configurations).
|
||||||
|
|
||||||
```
|
```
|
||||||
+ -----------------------------------------------------------------------------------------------------------------+
|
+ -----------------------------------------------------------------------------------------------------------------+
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 7.7 KiB After Width: | Height: | Size: 12 KiB |
Loading…
Reference in New Issue
Block a user