mirror of
https://github.com/Twigpine/node.git
synced 2026-11-09 18:08:02 -10:00
* fix(deps): resolve dependabot rust alerts * docs: clarify dependabot validation
90 lines
4.8 KiB
Bash
90 lines
4.8 KiB
Bash
# gitlawb node — environment variables
|
|
# Copy to .env and fill in your values.
|
|
# All variables are optional unless marked REQUIRED.
|
|
|
|
# ── Node identity ─────────────────────────────────────────────────────────
|
|
# Path to the node's Ed25519 keypair PEM file.
|
|
# Generate with: gl identity new
|
|
GITLAWB_KEY=/data/keys/identity.pem
|
|
|
|
# Publicly reachable URL of this node (used in peer announcements)
|
|
GITLAWB_PUBLIC_URL=https://your-node.example.com
|
|
|
|
# ── Server ────────────────────────────────────────────────────────────────
|
|
GITLAWB_HOST=0.0.0.0
|
|
GITLAWB_PORT=7545
|
|
|
|
# ── Storage ───────────────────────────────────────────────────────────────
|
|
GITLAWB_REPOS_DIR=/data/repos
|
|
|
|
# PostgreSQL connection URL. Required.
|
|
# When using the bundled docker-compose, this is wired automatically.
|
|
DATABASE_URL=postgresql://gitlawb:changeme@localhost:5432/gitlawb
|
|
|
|
# ── IPFS pinning (Pinata) ─────────────────────────────────────────────────
|
|
# Get a JWT at https://app.pinata.cloud/developers/api-keys
|
|
GITLAWB_PINATA_JWT=
|
|
GITLAWB_PINATA_UPLOAD_URL=https://uploads.pinata.cloud/v3/files
|
|
|
|
# ── Arweave permanent anchoring (Irys devnet) ─────────────────────────────
|
|
# Leave empty to disable Arweave anchoring.
|
|
GITLAWB_IRYS_URL=https://devnet.irys.xyz
|
|
|
|
# ── Base L2 smart contracts ───────────────────────────────────────────────
|
|
GITLAWB_CHAIN_RPC_URL=https://sepolia.base.org
|
|
GITLAWB_CONTRACT_DID_REGISTRY=0x8046284116C5ac6724adbBf860feBeA85692d574
|
|
GITLAWB_CONTRACT_NAME_REGISTRY=0x73094B9DAb2421878A20Abed1497001fbD51302c
|
|
|
|
# $GITLAWB ERC20 token (Base mainnet).
|
|
GITLAWB_TOKEN=0x5F980Dcfc4c0fa3911554cf5ab288ed0eb13DBa3
|
|
|
|
# ── On-chain PoS (operators — required to earn rewards) ───────────────────
|
|
# Set both of the next two to enable Proof-of-Stake mode. With both set, the
|
|
# node verifies its registration on startup and posts heartbeats automatically.
|
|
# Leave empty to run without on-chain PoS (local dev / pre-launch).
|
|
|
|
# Deployed GitlawbNodeStaking contract address.
|
|
GITLAWB_CONTRACT_NODE_STAKING=
|
|
|
|
# Operator wallet private key (0x-prefixed hex). Used to sign heartbeats.
|
|
# Use a dedicated wallet with only enough ETH for gas — not your treasury.
|
|
GITLAWB_OPERATOR_PRIVATE_KEY=
|
|
|
|
# If true, the node refuses to start unless registered and currently active.
|
|
# Leave false while bootstrapping; flip to true once your stake is confirmed.
|
|
GITLAWB_OPERATOR_STRICT_MODE=false
|
|
|
|
# Heartbeat cadence in hours. Must be < 24 with headroom. Default: 20.
|
|
GITLAWB_HEARTBEAT_INTERVAL_HOURS=20
|
|
|
|
# ── docker-compose Postgres password ──────────────────────────────────────
|
|
# Only used when running via `docker compose up` with the bundled Postgres.
|
|
POSTGRES_PASSWORD=changeme
|
|
|
|
# ── P2P networking ────────────────────────────────────────────────────────
|
|
GITLAWB_P2P_PORT=7546
|
|
# Comma-separated HTTP peer URLs to announce to on startup.
|
|
# The binary also ships with bootstrap-peers.json; set
|
|
# GITLAWB_BOOTSTRAP_DISABLE_SEEDS=true for isolated dev/test networks.
|
|
GITLAWB_BOOTSTRAP_PEERS=
|
|
GITLAWB_BOOTSTRAP_DISABLE_SEEDS=false
|
|
# Require signatures on peer announce/sync write routes. Keep false during
|
|
# rolling upgrades so existing live nodes can still communicate.
|
|
GITLAWB_REQUIRE_SIGNED_PEER_WRITES=false
|
|
|
|
# Comma-separated libp2p multiaddrs.
|
|
# Example: /ip4/1.2.3.4/udp/7546/quic-v1/p2p/12D3KooW...
|
|
GITLAWB_P2P_BOOTSTRAP=
|
|
|
|
# ── Access control ────────────────────────────────────────────────────────
|
|
# Reserved for private-read mode. Public/private repo read enforcement is not
|
|
# wired in the current live release; do not rely on this for private repositories.
|
|
GITLAWB_PUBLIC_READ=true
|
|
|
|
# Maximum git smart-HTTP pack request size, in bytes.
|
|
GITLAWB_MAX_PACK_BYTES=2147483648
|
|
|
|
# ── Sync ─────────────────────────────────────────────────────────────────
|
|
# Enable automatic background sync from known peers
|
|
GITLAWB_AUTO_SYNC=false
|