From 798886c5b23690f1242f6ba7d96d0331fa87dddb Mon Sep 17 00:00:00 2001 From: datadunia Date: Sun, 31 May 2026 05:55:57 +0700 Subject: [PATCH] chore: add nexusguard.conf.example for native install, gitignore conf file --- .gitignore | 1 + nexusguard.conf.example | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 nexusguard.conf.example diff --git a/.gitignore b/.gitignore index ad5d434..c0e9b8d 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,7 @@ Desktop.ini .env .env.local .env.production +nexusguard.conf # Logs *.log diff --git a/nexusguard.conf.example b/nexusguard.conf.example new file mode 100644 index 0000000..37b955a --- /dev/null +++ b/nexusguard.conf.example @@ -0,0 +1,35 @@ +# ========================================== +# NexusGuard SD-WAN - Configuration +# ========================================== +# For native (non-Docker) installations. +# Install to /etc/nexusguard/nexusguard.conf +# Env vars always take precedence over this file. + +# 1. Database Configuration (PostgreSQL) +DB_HOST=127.0.0.1 +DB_PORT=5432 +DB_USER=nexusguard +DB_PASSWORD=nexusguard +DB_NAME=nexusguard + +# 2. Redis Configuration +REDIS_ADDR=127.0.0.1:6379 + +# 3. Security & Cryptography +# Generate using: openssl rand -hex 32 +JWT_SECRET=changeme +SERVER_SALT=changeme + +# 4. Networking & SD-WAN +NFTABLES_TABLE=nexusguard +IPAM_POOL=10.8.0.0/16 + +# 5. General Settings +GIN_MODE=release +LOG_LEVEL=info + +# 6. CORS Configuration +CORS_ALLOWED_ORIGINS=http://localhost:5173 + +# 7. Share Link Configuration +SHARE_LINK_TTL=24h