Update webhook endpoint to new URL format across README, main application, and UI components. Change from http://localhost:9995/api/hash-service/1 to http://localhost:9876/api/web-service/ for consistency in configuration settings.

This commit is contained in:
KennyG 2026-04-02 10:03:22 -04:00
parent 8743cc2842
commit ba5a4f50c5
3 changed files with 5 additions and 5 deletions

View file

@ -41,7 +41,7 @@ Certain values can be set via environment variables, using the `-e` parameter on
* __SUBSCRIPTION_MAX_SEEN_IDS__: Cap on stored video IDs per subscription to limit state file growth. Defaults to `50000`. * __SUBSCRIPTION_MAX_SEEN_IDS__: Cap on stored video IDs per subscription to limit state file growth. Defaults to `50000`.
* __CLEAR_COMPLETED_AFTER__: Number of seconds after which completed (and failed) downloads are automatically removed from the "Completed" list. Defaults to `0` (disabled). * __CLEAR_COMPLETED_AFTER__: Number of seconds after which completed (and failed) downloads are automatically removed from the "Completed" list. Defaults to `0` (disabled).
* __WEBSERVICE_ENABLED__: If `true`, call a webhook endpoint when a download completes. Defaults to `false`. * __WEBSERVICE_ENABLED__: If `true`, call a webhook endpoint when a download completes. Defaults to `false`.
* __WEBSERVICE_ENDPOINT__: Full webhook URL to call (for example `http://localhost:9995/api/hash-service/1`). Defaults to `http://localhost:9995/api/hash-service/1`. * __WEBSERVICE_ENDPOINT__: Full webhook URL to call (for example `"http://localhost:9876/api/web-service/"`). Defaults to `"http://localhost:9876/api/web-service/"`.
* __WEBSERVICE_TIMEOUT_SEC__: Timeout (seconds) for webhook requests. Defaults to `20`. * __WEBSERVICE_TIMEOUT_SEC__: Timeout (seconds) for webhook requests. Defaults to `20`.
### 📁 Storage & Directories ### 📁 Storage & Directories
@ -107,7 +107,7 @@ Example:
```json ```json
{ {
"enabled": true, "enabled": true,
"endpoint": "http://localhost:9995/api/hash-service/1", "endpoint": "http://localhost:9876/api/web-service/",
"timeout_sec": 20 "timeout_sec": 20
} }
``` ```

View file

@ -71,7 +71,7 @@ class Config:
'LOGLEVEL': 'INFO', 'LOGLEVEL': 'INFO',
'ENABLE_ACCESSLOG': 'false', 'ENABLE_ACCESSLOG': 'false',
'WEBSERVICE_ENABLED': 'false', 'WEBSERVICE_ENABLED': 'false',
'WEBSERVICE_ENDPOINT': 'http://localhost:9995/api/hash-service/1', 'WEBSERVICE_ENDPOINT': 'http://localhost:9876/api/web-service/',
'WEBSERVICE_TIMEOUT_SEC': '20', 'WEBSERVICE_TIMEOUT_SEC': '20',
} }

View file

@ -108,7 +108,7 @@ export class App implements AfterViewInit, OnInit, OnDestroy {
metubeVersion: string | null = null; metubeVersion: string | null = null;
isAdvancedOpen = false; isAdvancedOpen = false;
webhookEnabled = false; webhookEnabled = false;
webhookEndpoint = 'http://localhost:9995/api/hash-service/1'; webhookEndpoint = 'http://localhost:9876/api/web-service/';
webhookTimeoutSec = 20; webhookTimeoutSec = 20;
webhookSettingsStatus = ''; webhookSettingsStatus = '';
webhookTestStatus = ''; webhookTestStatus = '';
@ -330,7 +330,7 @@ export class App implements AfterViewInit, OnInit, OnDestroy {
} }
const settings = data as WebhookSettings; const settings = data as WebhookSettings;
this.webhookEnabled = !!settings.enabled; this.webhookEnabled = !!settings.enabled;
this.webhookEndpoint = String(settings.endpoint || 'http://localhost:9995/api/hash-service/1'); this.webhookEndpoint = String(settings.endpoint || 'http://localhost:9876/api/web-service/');
this.webhookTimeoutSec = Math.max(1, Number(settings.timeout_sec || 20)); this.webhookTimeoutSec = Math.max(1, Number(settings.timeout_sec || 20));
this.webhookSettingsStatus = ''; this.webhookSettingsStatus = '';
this.cdr.markForCheck(); this.cdr.markForCheck();