Add service discovery script to jobs, extend nginx and host directory support. Update environment variables, configs, and examples.
This commit is contained in:
1 parent
5305687f98
commit
3aecb3a631
6 files changed
+151
-15
No files matched your search
@@ -3,7 +3,7 @@ export type JobsConfig = {
|
||||
/** Directory of the job scripts; relative script paths start here. */
|
||||
scriptsDir: string;
|
||||
contentDir: string;
|
||||
/** Read only view of /srv on the host. Watch paths are relative to it and must stay inside. */
|
||||
/** Read only views of the host, /srv as srv and the nginx config as nginx. Watch paths are relative to it and must stay inside. */
|
||||
hostDir: string;
|
||||
/** Builtin jobs of the backend are triggered through files in this directory. */
|
||||
triggerDir: string;
|
||||
@@ -21,7 +21,7 @@ export function loadConfig(env: NodeJS.ProcessEnv): JobsConfig
|
||||
jobsFile: env.JOBS_FILE ?? '/config/jobs.toml',
|
||||
scriptsDir: env.SCRIPTS_DIR ?? '/jobs',
|
||||
contentDir: env.CONTENT_DIR ?? '/content',
|
||||
hostDir: env.HOST_DIR ?? '/host/srv',
|
||||
hostDir: env.HOST_DIR ?? '/host',
|
||||
triggerDir: env.TRIGGER_DIR ?? '/run/jobs/triggers',
|
||||
controlSocket: env.CONTROL_SOCKET ?? '/run/jobs/control.sock',
|
||||
killGraceMs: killGraceSeconds * 1000,
|
||||
|
||||
Reference in new issue
Block a user