80 lines
2.6 KiB
YAML
80 lines
2.6 KiB
YAML
# Configuration for AOC Sync
|
|
# Poll interval in seconds
|
|
poll_interval: 300
|
|
|
|
# Output directory for generated HTML
|
|
output_dir: "output"
|
|
|
|
# Data storage
|
|
data_dir: "data"
|
|
|
|
# Optional: rsync output to remote server after successful run
|
|
rsync:
|
|
enabled: true
|
|
destination: "xinu.tv:/var/www/static/aoc/"
|
|
|
|
# Podman container configuration for running cargo aoc
|
|
docker:
|
|
# Persistent directory for cargo build artifacts (speeds up rebuilds)
|
|
# If not specified, uses temporary directory that's cleaned up after each run
|
|
build_cache_dir: "/tmp/aocsync/build_cache_dir"
|
|
|
|
# Persistent directory for cargo registry cache (downloaded dependencies)
|
|
# If not specified, uses tmpfs that's cleared after each run
|
|
registry_cache_dir: "/tmp/aocsync/registry_cache_dir"
|
|
|
|
# Container resource limits
|
|
memory: "2g" # Memory limit
|
|
cpus: "2" # CPU limit
|
|
|
|
# Podman image to use (should have cargo-aoc installed)
|
|
# Default: "aocsync:latest" (build with: podman build -t aocsync:latest -f Dockerfile .)
|
|
# Alternative: "rust:latest" (will install cargo-aoc on first run, slower)
|
|
image: "aocsync:latest"
|
|
|
|
# Repositories to monitor
|
|
repositories:
|
|
# Example: Single repository with all years
|
|
- name: "wathiede"
|
|
url: "https://github.com/wathiede/advent"
|
|
type: "single" # single repo for all years
|
|
local_path: "repos/wathiede"
|
|
# Optional: specify years if auto-detection fails
|
|
# years: [2023, 2024]
|
|
|
|
# Example: Multiple repositories, one per year
|
|
- name: "ggriffiniii"
|
|
type: "multi-year" # one repo per year
|
|
years:
|
|
- year: 2020
|
|
url: "https://github.com/ggriffiniii/aoc2020"
|
|
local_path: "repos/ggriffiniii-2020"
|
|
- year: 2021
|
|
url: "https://github.com/ggriffiniii/aoc2021"
|
|
local_path: "repos/ggriffiniii-2021"
|
|
- year: 2022
|
|
url: "https://github.com/ggriffiniii/aoc2022"
|
|
local_path: "repos/ggriffiniii-2022"
|
|
- year: 2025
|
|
url: "https://github.com/ggriffiniii/aoc2025"
|
|
local_path: "repos/ggriffiniii-2025"
|
|
#- year: 2024
|
|
# url: "https://github.com/user2/aoc-2024"
|
|
# local_path: "repos/user2-2024"
|
|
|
|
# Didn't use cargo aoc
|
|
# - name: "akramer"
|
|
# type: "multi-year" # one repo per year
|
|
# years:
|
|
# - year: 2021
|
|
# url: "https://github.com/akramer/aoc2021"
|
|
# local_path: "repos/akramer-2021"
|
|
# - year: 2022
|
|
# url: "https://github.com/akramer/aoc2022"
|
|
# local_path: "repos/akramer-2022"
|
|
# Years to compare (optional, if not specified, all years found will be used)
|
|
# compare_years: [2025]
|
|
|
|
# Days to compare (optional, if not specified, all days found will be used)
|
|
# compare_days: [1, 2, 3, 4, 5]
|