Skip to content

Commit 8fdd836

Browse files
committed
bump
1 parent 1d4963a commit 8fdd836

File tree

2 files changed

+71
-0
lines changed

2 files changed

+71
-0
lines changed

examples/bad/neuron.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
logging:
2+
destination: \Neuron\Log\Destination\File
3+
format: \Neuron\Log\Format\PlainText
4+
file: test.log
5+
level: debug
6+
7+
views:
8+
path: views
9+
10+
system:
11+
timezone: US/Eastern
12+
base_path: examples/bad
13+

examples/config/neuron.yaml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
logging:
2+
destination: \Neuron\Log\Destination\File
3+
format: \Neuron\Log\Format\PlainText
4+
file: test.log
5+
level: debug
6+
7+
views:
8+
path: views
9+
10+
cache:
11+
enabled: true
12+
storage: file # Options: 'file' or 'redis'
13+
path: cache/views # Path for file storage
14+
ttl: 3600
15+
html: true
16+
markdown: true
17+
json: false
18+
xml: false
19+
20+
# Redis configuration (used when storage: redis)
21+
# redis_host: 127.0.0.1
22+
# redis_port: 6379
23+
# redis_database: 0
24+
# redis_prefix: neuron_cache_
25+
# redis_timeout: 2.0
26+
# redis_auth: null
27+
# redis_persistent: false
28+
29+
# Garbage collection settings (optional, defaults shown)
30+
# gc_probability: 0.01 # 1% chance to run GC on cache write
31+
# gc_divisor: 100 # Used with probability for fine-tuning
32+
33+
# Rate limiting configuration
34+
rate_limit:
35+
enabled: false # Enable/disable rate limiting
36+
global: false # Apply to all routes globally
37+
storage: file # Storage backend: file, redis, memory (testing only)
38+
requests: 100 # Maximum requests per window
39+
window: 3600 # Time window in seconds (3600 = 1 hour)
40+
file_path: cache/rate_limits
41+
# Redis configuration (if storage: redis)
42+
# redis_host: 127.0.0.1
43+
# redis_port: 6379
44+
# redis_database: 0
45+
# redis_prefix: rate_limit_
46+
47+
# API rate limiting (higher limits)
48+
api_limit:
49+
enabled: false
50+
storage: file
51+
requests: 1000 # 1000 requests
52+
window: 3600 # Per hour
53+
file_path: cache/api_limits
54+
55+
system:
56+
timezone: US/Eastern
57+
base_path: examples
58+
routes_path: examples/config

0 commit comments

Comments
 (0)