Added redis to nitter and updated its config

master
Meliurwen 3 years ago
parent 1632496b55
commit 40d3699054
Signed by: meliurwen
GPG Key ID: 818A8B35E9F1CE10
  1. 9
      config/nitter.conf
  2. 21
      docker-compose.yml

@ -10,8 +10,9 @@ hostname = "nitter.net"
[Cache] [Cache]
listMinutes = 240 # how long to cache list info (not the tweets, so keep it high) listMinutes = 240 # how long to cache list info (not the tweets, so keep it high)
rssMinutes = 10 # how long to cache rss queries rssMinutes = 10 # how long to cache rss queries
redisHost = "localhost" redisHost = "nitter-redis"
redisPort = 6379 redisPort = 6379
redisPassword = ""
redisConnections = 20 # connection pool size redisConnections = 20 # connection pool size
redisMaxConnections = 30 redisMaxConnections = 30
# max, new connections are opened when none are available, but if the pool size # max, new connections are opened when none are available, but if the pool size
@ -21,6 +22,9 @@ redisMaxConnections = 30
[Config] [Config]
hmacKey = "secretkey" # random key for cryptographic signing of video urls hmacKey = "secretkey" # random key for cryptographic signing of video urls
base64Media = false # use base64 encoding for proxied media urls base64Media = false # use base64 encoding for proxied media urls
enableRSS = true # set this to false to disable RSS feeds
proxy = "" # proxy type http/https
proxyAuth = ""
tokenCount = 10 tokenCount = 10
# minimum amount of usable tokens. tokens are used to authorize API requests, # minimum amount of usable tokens. tokens are used to authorize API requests,
# but they expire after ~1 hour, and have a limit of 187 requests. # but they expire after ~1 hour, and have a limit of 187 requests.
@ -33,7 +37,8 @@ tokenCount = 10
theme = "Nitter" theme = "Nitter"
replaceTwitter = "nitter.net" replaceTwitter = "nitter.net"
replaceYouTube = "invidio.us" replaceYouTube = "invidio.us"
replaceInstagram = "" replaceReddit = "teddit.net"
replaceInstagram = "bibliogram.art"
proxyVideos = true proxyVideos = true
hlsPlayback = false hlsPlayback = false
infiniteScroll = false infiniteScroll = false

@ -32,6 +32,19 @@ services:
networks: networks:
- socials - socials
nitter-redis:
image: ${NIR_IMG:-redis:6-alpine}
container_name: ${NIR_CONTAINER_NAME:-nitter-redis}
restart: ${NIR_RESTART:-unless-stopped}
environment:
- REDIS_REPLICATION_MODE=master
expose:
- 6379
volumes:
- nitter-redis:/var/lib/redis
networks:
- socials
nitter: nitter:
build: build:
context: nitter/ context: nitter/
@ -43,6 +56,8 @@ services:
- ./config/nitter.conf:/src/nitter.conf - ./config/nitter.conf:/src/nitter.conf
networks: networks:
- socials - socials
depends_on:
- nitter-redis
omgur-redis: omgur-redis:
image: ${OMGR_IMG:-redis:6-alpine} image: ${OMGR_IMG:-redis:6-alpine}
@ -50,6 +65,10 @@ services:
restart: ${OMGR_RESTART:-unless-stopped} restart: ${OMGR_RESTART:-unless-stopped}
environment: environment:
- REDIS_REPLICATION_MODE=master - REDIS_REPLICATION_MODE=master
expose:
- 6379
volumes:
- omgur-redis:/var/lib/redis
networks: networks:
- socials - socials
@ -115,6 +134,8 @@ services:
volumes: volumes:
nginx-cache: nginx-cache:
bibliogram-db: bibliogram-db:
nitter-redis:
omgur-redis:
invidious-postgres-data: invidious-postgres-data:
networks: networks:

Loading…
Cancel
Save