Skip to content

Commit c96b1f3

Browse files
Add example configuration file for DeWeb plugin
1 parent b661f0c commit c96b1f3

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

plugin/config.yaml.example

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# DeWeb plugin Configuration
2+
3+
# Network node URL to connect to (default: "https://mainnet.massa.net/api/v2")
4+
network_node_url: "https://mainnet.massa.net/api/v2"
5+
6+
# API port to listen on (default: 0)
7+
api_port: 0
8+
9+
# Cache configuration
10+
cache:
11+
# Whether caching is enabled (default: true)
12+
enabled: true
13+
14+
# Maximum number of files stored in RAM cache (default: 1000)
15+
site_ram_cache_max_items: 1000
16+
17+
# Maximum number of files stored in disk cache (default: 10000)
18+
site_disk_cache_max_items: 10000
19+
20+
# Directory to store the disk cache (default: "./websitesCache/")
21+
disk_cache_dir: "./websitesCache/"
22+
23+
# Duration in seconds for file list cache (default: 60s)
24+
file_list_cache_duration_seconds: 60

0 commit comments

Comments
 (0)