Files
.infineon/_-Review/readeck.md
2024-11-06 12:39:13 -07:00

1.7 KiB

type, created, updated
type created updated
note 2024-06-29T15:05:50.000Z 2024-07-02T16:44:12.005Z

Readeck

nano /opt/readeck/config.toml
systemctl restart readeck
[main]
log_level = "info"
secret_key = "eQ&SKmp%wRvkG+b&dvsri%pbws82L7t2EbkvmOrEqnGkL$Fc*r7LQ50jA*IzQI0n6mFJuoLpmz2"
data_directory = "data"

[server]
host = "0.0.0.0"
port = 8000
allowed_hosts = ["readeck.beelink.server"]
use_x_forwarded_for = true
use_x_forwarded_host = true
use_x_forwarded_proto = true

[database]
source = "sqlite3:data/db.sqlite3"
version: "3.9"
services:
  readeck:
    image: codeberg.org/readeck/readeck:latest
    container_name: readeck
    ports:
      - 8000:8000
    environment:
      # Defines the application log level. Can be error, warning, info, debug.
      - READECK_LOG_LEVEL=info
      # The IP address on which Readeck listens.
      - READECK_SERVER_HOST=0.0.0.0
      # The TCP port on which Readeck listens. Update container port above to match (right of colon).
      - READECK_SERVER_PORT=8000
      # The URL prefix of Readeck.
      - READECK_SERVER_PREFIX=/
      # A list of hostnames allowed in HTTP requests. Required for reverse proxy configuration.
      - READECK_ALLOWED_HOSTS=readeck.beelink.server
      # Use the 'X-Forwarded-' headers. Required for reverse proxy configuration.
      - READECK_USE_X_FORWARDED=true
    volumes:
      - /volume1/docker/readeck:/readeck:rw
    restart: unless-stopped
    healthcheck:
      test: ["CMD", "/bin/readeck", "healthcheck", "-config", "config.toml"]
      interval: 30s
      timeout: 2s
      retries: 3