-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
142 lines (116 loc) · 3 KB
/
Copy path.env.example
File metadata and controls
142 lines (116 loc) · 3 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# TinyProxy Configuration
# Application Environment (development, staging, production)
APP_ENV=development
APP_DEBUG=true
APP_NAME="TinyProxy"
APP_VERSION="2.0.0"
# Server Configuration
APP_URL=http://localhost:8080
APP_TIMEZONE=UTC
# Proxy Settings
PROXY_ENABLED=true
PROXY_ALLOWED_ORIGINS="*"
PROXY_USE_CSP=true
PROXY_USER_AGENT="Mozilla/5.0 (X11; Linux x86_64; rv:129.0) Gecko/20100101 Firefox/129.0"
PROXY_URL_QUERY_KEY=url
MODIFY_CONTENT=true
# HTTP Client Settings
HTTP_TIMEOUT=30
HTTP_VERIFY_SSL=true
HTTP_MAX_REDIRECTS=5
# Cache Settings
CACHE_ENABLED=true
CACHE_DRIVER=file
CACHE_DIRECTORY=var/cache
CACHE_DURATION=3600
CACHE_MAX_SIZE=104857600
CACHE_MAX_AGE_HEADER=7200
CACHE_IMAGES=true
CACHE_COMPRESSION=true
# Cacheable Content Types (comma-separated)
CACHABLE_TYPES="text/javascript,text/css,text/html,application/json,text/plain,image/jpeg,image/png,image/gif,image/svg+xml"
# Text Content Types (comma-separated)
TEXT_TYPES="text/javascript,text/css,text/html,application/json,text/plain"
# HTML Modifier Settings
HTML_MODIFIER_ENABLED=true
HTML_MODIFIER_URL_ATTRIBUTES="href,src,action"
HTML_MODIFIER_USE_CSP=true
HTML_MODIFIER_SHOW_TOP_BAR=true
# CSS Modifier Settings
CSS_MODIFIER_ENABLED=true
# AdBlocker Settings
ADBLOCKER_ENABLED=true
# Security Settings
SECURITY_ENABLED=true
SECURITY_BLOCK_PRIVATE_IPS=true
SECURITY_BLOCK_LOCALHOST=true
SECURITY_BLOCK_METADATA_ENDPOINTS=true
# URL Validation
URL_WHITELIST=
URL_BLACKLIST=
# Rate Limiting
RATE_LIMIT_ENABLED=true
RATE_LIMIT_REQUESTS_PER_MINUTE=100
RATE_LIMIT_REQUESTS_PER_HOUR=1000
RATE_LIMIT_STORAGE=apcu
# Authentication & Authorization
AUTH_ENABLED=false
AUTH_REQUIRE_API_KEY=false
AUTH_API_KEYS=
# JWT Settings (for admin dashboard)
JWT_SECRET=changeme_generate_a_random_secret_key_here
JWT_ALGORITHM=HS256
JWT_EXPIRATION=86400
JWT_REFRESH_EXPIRATION=604800
# Admin Dashboard
ADMIN_ENABLED=true
ADMIN_USERNAME=admin
ADMIN_PASSWORD=changeme
# Logging
LOG_ENABLED=true
LOG_DIRECTORY=var/logs
LOG_LEVEL=info
LOG_ERROR_FILE=error.log
LOG_ACCESS_FILE=access.log
LOG_DEBUG_FILE=debug.log
LOG_MAX_FILES=10
LOG_MAX_SIZE=10485760
# Error Logging
ERROR_LOG_ENABLED=true
ERROR_LOG_DIRECTORY=var/logs
ERROR_LOG_FILE=error.log
# Debug Logging
DEBUG_ENABLED=false
DEBUG_DIRECTORY=var/logs
DEBUG_FILE=debug.log
# Statistics
STATS_ENABLED=true
STATS_RETENTION_DAYS=30
# API Settings
API_ENABLED=true
API_PREFIX=/api
API_RATE_LIMIT_ENABLED=true
API_RATE_LIMIT_PER_MINUTE=60
# CORS Settings
CORS_ENABLED=true
CORS_ALLOWED_ORIGINS="*"
CORS_ALLOWED_METHODS="GET,POST,PUT,DELETE,OPTIONS"
CORS_ALLOWED_HEADERS="Content-Type,Authorization,X-API-Key"
CORS_MAX_AGE=86400
# Performance Settings
PERFORMANCE_COMPRESSION=true
PERFORMANCE_STREAMING=true
PERFORMANCE_IMAGE_OPTIMIZATION=false
# Database (optional - for future use)
DB_ENABLED=false
DB_DRIVER=sqlite
DB_PATH=var/database/metadata.sqlite
# Redis (optional - for cache and rate limiting)
REDIS_ENABLED=false
REDIS_HOST=127.0.0.1
REDIS_PORT=6379
REDIS_PASSWORD=
REDIS_DATABASE=0
# APCu Settings
APCU_ENABLED=true
APCU_PREFIX=tinyproxy_