Add jobs service with script execution, configuration support, and control interface.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1f6d41ab06
commit
0ad5b5f44f
27 files changed
+1108
-45
No files matched your search
@@ -7,6 +7,8 @@ export type BackendConfig = {
|
||||
frontendDir: string;
|
||||
contentDir: string;
|
||||
jobsFile: string;
|
||||
/** Directory the jobs service writes triggers for builtin jobs into; empty disables them. */
|
||||
triggerDir: string;
|
||||
/** Absolute URL of the site, for the sitemap. */
|
||||
siteUrl: string;
|
||||
/** Route name to content file, from LEGAL_PAGES like "impressum:impressum.txt". */
|
||||
@@ -59,6 +61,7 @@ export function loadConfig(env: NodeJS.ProcessEnv): BackendConfig
|
||||
frontendDir: env.FRONTEND_DIR ?? '/app/public',
|
||||
contentDir: env.CONTENT_DIR ?? '/content',
|
||||
jobsFile: env.JOBS_FILE ?? '/config/jobs.toml',
|
||||
triggerDir: env.TRIGGER_DIR ?? '',
|
||||
siteUrl: env.SITE_URL ?? 'https://security-command.org',
|
||||
legalPages: legalPages(env.LEGAL_PAGES ?? 'impressum:impressum.txt,datenschutz:datenschutz.txt'),
|
||||
statusDir: env.STATUS_DIR ?? '',
|
||||
|
||||
Reference in new issue
Block a user