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
|
# Required for authenticated version checks
|
||||||
PAPERLESS_API_TOKEN=replace-with-api-token
|
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)
|
# Optional (use if upstream APIs need auth to avoid rate limits)
|
||||||
GITHUB_TOKEN=optional-github-token
|
GITHUB_TOKEN=optional-github-token
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,6 @@ Copy `.env.sample` to `.env` and fill required values. Export the variables befo
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
export PAPERLESS_API_TOKEN=...
|
export PAPERLESS_API_TOKEN=...
|
||||||
export RADICALE_BASIC_AUTH=...
|
|
||||||
export FRESHRSS_USERNAME=...
|
export FRESHRSS_USERNAME=...
|
||||||
export FRESHRSS_PASSWORD=...
|
export FRESHRSS_PASSWORD=...
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -124,16 +124,16 @@ def load_services(config: Dict[str, Any]) -> Dict[str, ServiceConfig]:
|
||||||
|
|
||||||
|
|
||||||
def resolve_env_placeholders(value: str) -> str:
|
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_name = match.group(1)
|
||||||
env_value = os.getenv(env_name)
|
env_value = os.getenv(env_name)
|
||||||
if env_value is None:
|
if env_value is None:
|
||||||
raise ValueError(f"Missing environment variable {env_name}")
|
raise ValueError(f"Missing environment variable {env_name}")
|
||||||
return env_value
|
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]:
|
def build_headers(raw_headers: Optional[Dict[str, str]]) -> Dict[str, str]:
|
||||||
|
|
|
||||||
|
|
@ -83,19 +83,6 @@ services:
|
||||||
upstream_latest_extract:
|
upstream_latest_extract:
|
||||||
type: jsonpath
|
type: jsonpath
|
||||||
value: $.tag_name
|
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
|
- name: FreshRSS
|
||||||
base_url: https://rss.jeena.net/
|
base_url: https://rss.jeena.net/
|
||||||
current_version_url: https://rss.jeena.net/i/?a=about
|
current_version_url: https://rss.jeena.net/i/?a=about
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue