feat: Drop Radicale checks
Remove the Radicale service entry and related auth configuration now that updates are handled by the OS package manager.
This commit is contained in:
parent
7537de2f53
commit
7c778e338c
4 changed files with 3 additions and 18 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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=...
|
||||
```
|
||||
|
|
|
|||
|
|
@ -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]:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue