diff --git a/.env.sample b/.env.sample index 0f8813a..591c9a2 100644 --- a/.env.sample +++ b/.env.sample @@ -1,6 +1,5 @@ # Required for authenticated version checks PAPERLESS_API_TOKEN=replace-with-api-token -RADICALE_BASIC_AUTH=base64-user-colon-pass # Optional (use if upstream APIs need auth to avoid rate limits) GITHUB_TOKEN=optional-github-token diff --git a/README.md b/README.md index a283140..8f4938f 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,6 @@ Copy `.env.sample` to `.env` and fill required values. Export the variables befo ```bash export PAPERLESS_API_TOKEN=... -export RADICALE_BASIC_AUTH=... export FRESHRSS_USERNAME=... export FRESHRSS_PASSWORD=... ``` diff --git a/check_updates.py b/check_updates.py index a434d5d..e4ad30a 100644 --- a/check_updates.py +++ b/check_updates.py @@ -124,16 +124,16 @@ def load_services(config: Dict[str, Any]) -> Dict[str, ServiceConfig]: def resolve_env_placeholders(value: str) -> str: - pattern = re.compile(r"\{env:([A-Z0-9_]+)\}") + env_pattern = re.compile(r"\{env:([A-Z0-9_]+)\}") - def replace(match: re.Match[str]) -> str: + def replace_env(match: re.Match[str]) -> str: env_name = match.group(1) env_value = os.getenv(env_name) if env_value is None: raise ValueError(f"Missing environment variable {env_name}") return env_value - return pattern.sub(replace, value) + return env_pattern.sub(replace_env, value) def build_headers(raw_headers: Optional[Dict[str, str]]) -> Dict[str, str]: diff --git a/services.yaml b/services.yaml index 3bb91b2..acc1230 100644 --- a/services.yaml +++ b/services.yaml @@ -83,19 +83,6 @@ services: upstream_latest_extract: type: jsonpath value: $.tag_name - - name: Radicale WebDav - base_url: https://dav.jeena.net/.web/ - current_version_url: https://dav.jeena.net/version - current_version_extract: - type: jsonpath - value: $.version - current_version_headers: - Authorization: Basic {env:RADICALE_BASIC_AUTH} - upstream_latest_version_url: https://api.github.com/repos/Kozea/Radicale/releases/latest - upstream_latest_extract: - type: jsonpath - value: $.tag_name - notes: /version returns 401 without auth; uses Basic auth. - name: FreshRSS base_url: https://rss.jeena.net/ current_version_url: https://rss.jeena.net/i/?a=about