Files
any-hub/configs/npm.sample.toml
Rogee 40c6f2fcce fix: align cache controls with config
Remove unused head-check config, make TTL overrides explicit, and tighten revalidation to avoid stale cache behavior.
2026-01-26 15:55:03 +08:00

22 lines
512 B
TOML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# NPM Registry 代理示例配置
# 使用前请在 /etc/hosts 中为 npm.hub.local 配置 127.0.0.1
# 并根据需要调整 StoragePath/ListenPort 等字段。
ListenPort = 5000
LogLevel = "info"
LogFilePath = "./logs/npm-proxy.log"
StoragePath = "./storage/npm"
CacheTTL = 86400
UpstreamTimeout = "30s"
[[Hub]]
Name = "npm"
Domain = "npm.hub.local"
Upstream = "https://registry.npmjs.org"
Proxy = ""
Type = "npm" # docker|npm|go
Module = "legacy"
Username = ""
Password = ""
CacheTTL = 43200