mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-08-25 23:41:06 +00:00
Follow-up to the review of #4057. - Rename apps/logos_delivery_node/compose -> apps/logos_delivery_node/docker (review request); the only path reference was in the folder's own README. - run_certbot.sh: pass the configured EMAIL to certbot instead of the hardcoded admin@$DOMAIN, and forward EMAIL to the certbot container so setting it in .env takes effect. Empty still falls back to admin@$DOMAIN. - set_storage_retention.sh: `grep -c` always prints a count, so the old sudo test was always true and sudo was used whenever ./postgresql existed. Test readability of the data directory directly instead. - chkhealth.sh: drop the stray `GET` argument, which curl treated as an extra (failing) URL. - docker-compose.yml: put certbot behind the `wss` profile so it no longer publishes host port 80 on deployments that do not use WebSocket-Secure, and drop the node's meaningless `depends_on: certbot` (run_node.sh polls for the certificate on disk anyway).
40 lines
1.7 KiB
Bash
40 lines
1.7 KiB
Bash
# Node network configuration
|
|
# PRESET: network preset. One of: logos.dev (default), logos.test, twn, status.prod.
|
|
# Set empty (PRESET=) to run without a preset -- then set cluster/shards
|
|
# yourself via EXTRA_ARGS (e.g. --cluster-id=... --num-shards-in-network=...).
|
|
PRESET=logos.dev
|
|
# ENTRY_LAYER: top API layer to run -- kernel (transport only, default), messaging,
|
|
# or channels (messaging + reliable channels).
|
|
ENTRY_LAYER=kernel
|
|
|
|
# Postgres credentials used by the node's store and the exporter/monitoring.
|
|
POSTGRES_USER=postgres
|
|
POSTGRES_PASSWORD=test123
|
|
|
|
# Advanced. Can be left empty in normal use cases.
|
|
# LOGOS_IMAGE: prebuilt logosdeliverynode image. Leave empty to build locally
|
|
# from the repo root Dockerfile (docker compose build).
|
|
LOGOS_IMAGE=
|
|
# NODEKEY: P2P node private key (64 char hex) for a stable peer identity.
|
|
NODEKEY=
|
|
# DOMAIN: public domain for WebSocket-Secure (TLS via certbot). Leave empty to
|
|
# disable WSS. When set, also set COMPOSE_PROFILES=wss below, otherwise
|
|
# certbot is not started and the node waits forever for a certificate.
|
|
DOMAIN=
|
|
# COMPOSE_PROFILES: set to `wss` (together with DOMAIN) to run the certbot
|
|
# service. It binds host port 80 for the ACME HTTP-01
|
|
# challenge, so it stays off unless requested.
|
|
COMPOSE_PROFILES=
|
|
# EMAIL: registration address for Let's Encrypt. Defaults to admin@$DOMAIN.
|
|
EMAIL=
|
|
# EXTRA_ARGS: extra logosdeliverynode CLI flags appended verbatim.
|
|
EXTRA_ARGS=
|
|
# STORAGE_SIZE: store retention size, e.g. 1GB. Empty defaults to size:1GB.
|
|
STORAGE_SIZE=
|
|
|
|
# Optional tuning (defaults applied if unset)
|
|
# POSTGRES_SHM=1g
|
|
# PROMETHEUS_RETENTION_SIZE=5GB
|
|
# PG_DATA_DIR=./postgresql
|
|
# CERTS_DIR=./certs
|