Add tests for backend asset handling and frontend boot sequence, remove outdated MOTD script, and add icons.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0ad5b5f44f
commit
7937879ace
34 files changed
+613
-116
No files matched your search
@@ -9,6 +9,8 @@ export type BackendConfig = {
|
||||
jobsFile: string;
|
||||
/** Directory the jobs service writes triggers for builtin jobs into; empty disables them. */
|
||||
triggerDir: string;
|
||||
/** Optional CSS appended to the theme of the frontend, which overrides its colors. */
|
||||
themeFile: string;
|
||||
/** Absolute URL of the site, for the sitemap. */
|
||||
siteUrl: string;
|
||||
/** Route name to content file, from LEGAL_PAGES like "impressum:impressum.txt". */
|
||||
@@ -62,6 +64,7 @@ export function loadConfig(env: NodeJS.ProcessEnv): BackendConfig
|
||||
contentDir: env.CONTENT_DIR ?? '/content',
|
||||
jobsFile: env.JOBS_FILE ?? '/config/jobs.toml',
|
||||
triggerDir: env.TRIGGER_DIR ?? '',
|
||||
themeFile: env.THEME_FILE ?? '/config/theme.css',
|
||||
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