Archived
Split session daemon from web server
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { homedir } from "node:os";
|
||||
import { join } from "node:path";
|
||||
|
||||
export function sessiondSocketPath(): string {
|
||||
return process.env.PI_WEB_SESSIOND_SOCKET ?? join(homedir(), ".pi-web", "sessiond.sock");
|
||||
}
|
||||
|
||||
export function sessiondHttpUrl(): string | undefined {
|
||||
return process.env.PI_WEB_SESSIOND_URL;
|
||||
}
|
||||
Reference in New Issue
Block a user