nginx #2

Merged
mb merged 10 commits from nginx into master 2024-02-04 00:37:33 +01:00
Showing only changes of commit 752efeece8 - Show all commits

View file

@ -87,8 +87,8 @@ export class Runner {
}
private start_process() {
const paths = container_paths(name);
const command = container_command(name, paths.root, {
const paths = container_paths(this.name);
const command = container_command(this.name, paths.root, {
boot: true,
veth: true,
redirections: this.config.redirections,
@ -99,8 +99,8 @@ export class Runner {
syscall_filter: ["add_key", "keyctl", "bpf"],
});
this.loop = loop_process(command, {
on_start: () => log("container", name, "started"),
on_stop: () => log("container", name, "stopped"),
on_start: () => log("container", this.name, "started"),
on_stop: () => log("container", this.name, "stopped"),
});
}
@ -109,7 +109,7 @@ export class Runner {
}
async update_proxies() {
const paths = container_paths(name);
const paths = container_paths(this.name);
await Deno.mkdir(paths.sites, { recursive: true });
const sites = new Set<string>();
for (const redir of this.config.redirections) {