-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
27 lines (21 loc) · 1.17 KB
/
.env.example
File metadata and controls
27 lines (21 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# ── ShareSecure Self-Hosted Configuration ──────────────────────────────────
# Server port (default: 3000)
PORT=3000
# Public-facing base URL (used in generated share links)
# Set this to your domain or IP in production
BASE_URL=http://localhost:3000
# Path to data directory (default: ./data)
# This folder will contain the SQLite database and uploaded files
# DATA_DIR=/var/lib/sharesecure
# --- Public Tunnel Options (Local Edition) ---
# Automatically spin up a public localtunnel so you can share files with other devices easily.
USE_LOCAL_TUNNEL=true
# Set a custom personal subdomain (e.g. TUNNEL_SUBDOMAIN=my-personal-files -> https://my-personal-files.loca.lt)
# TUNNEL_SUBDOMAIN=
# AES-256-GCM encryption key for at-rest encryption of files and metadata.
# Generate with: node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
# Leave blank to disable encryption (files stored as plaintext on disk).
# WARNING: Changing this key after uploads will make existing files unreadable.
ENCRYPTION_KEY=
# Optional: override the SQLite database path
# DB_PATH=/var/lib/sharesecure/sharesecure.db