Completed Rust project initialization: - Cargo.toml with all dependencies (actix-web, tokio, rustls, etc.) - Project structure (src/, tests/, configs/) - Module declarations (api, auth, config, jobs, logging, packages, systemd) - Clippy and rustfmt configured - Initial lib.rs and main.rs with logging setup - Config examples (config.yaml.example, whitelist.yaml.example) Dependencies resolved and project compiles successfully. Rust toolchain 1.94.1 installed.
15 lines
510 B
Plaintext
15 lines
510 B
Plaintext
# Linux Patch API - IP Whitelist Configuration
|
|
# Copy to /etc/linux_patch_api/whitelist.yaml
|
|
# Block all by default - only listed IPs can access the API
|
|
|
|
# Supported entry types:
|
|
# - Individual IPs: "192.168.1.100"
|
|
# - CIDR subnets: "192.168.1.0/24"
|
|
# - Hostnames: "admin-server.internal" (resolved at startup)
|
|
|
|
# Example entries:
|
|
entries:
|
|
- "192.168.1.0/24" # Management network
|
|
- "10.0.0.50" # Specific admin workstation
|
|
# - "admin-server.internal" # Hostname example (uncomment to use)
|