-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
70 lines (57 loc) · 1.82 KB
/
.env.example
File metadata and controls
70 lines (57 loc) · 1.82 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# lsget Environment Variables Configuration
# Copy this file to .env and customize as needed
# Server Configuration
# --------------------
# Address to bind the server to (REQUIRED)
# This is where the server listens (network layer)
# Default: 0.0.0.0:8080 (docker) or localhost:8080 (local)
LSGET_ADDR=0.0.0.0:8080
# Directory to serve files from (REQUIRED)
# Default: . (current directory) or /data (docker)
LSGET_DIR=/data
# Maximum bytes to display with cat command
# Default: 4096 (4 KB)
LSGET_CATMAX=4096
# Public Base URL (OPTIONAL - auto-detects if not set)
# Only needed when behind reverse proxy or when public URL differs from bind address
#
# When to use:
# - Behind Nginx/Caddy/Traefik with different public URL
# - Docker with custom domain mapping
# - Generating sitemap.xml with canonical URLs
#
# When NOT needed (leave empty):
# - Running locally for development
# - Direct access without reverse proxy
# - Auto-detection from request works fine
#
# Format: Full URL with protocol (http:// or https://) WITHOUT trailing slash
# Examples:
# LSGET_BASEURL=https://files.example.com
# LSGET_BASEURL=http://cdn.example.com:8080
# LSGET_BASEURL=https://example.com/files
#
# Leave empty for auto-detection (recommended for most setups):
LSGET_BASEURL=
# Logging Configuration
# ---------------------
# Path to access log file for statistics
# Leave empty to disable logging
LSGET_LOGFILE=/logs/access.log
# Process Management
# ------------------
# Path to PID file
# Leave empty to not create a PID file
LSGET_PID=
# Sitemap Generation
# ------------------
# Generate sitemap.xml every N minutes
# Set to 0 to disable sitemap generation
# Default: 0 (disabled)
LSGET_SITEMAP=0
# Docker-Specific
# ---------------
# Port mapping for docker-compose
# Maps host port to container port 8080
# Default: 8080
LSGET_PORT=8080