auf SSH umstellen

This commit is contained in:
ChK
2026-02-03 23:05:42 +01:00
parent 5b3a61b89d
commit 26378ecbfa
7 changed files with 152 additions and 18 deletions

View File

@@ -2,8 +2,8 @@
// Service-Liste
const services = [
{ id: "abc", name: "Control GamePad", url: "https://abc.server.schooltech.ch" },
{ id: "xyz", name: "Guacamole", url: "https://xyz.server.schooltech.ch" }
{ id: "abc", name: "Control GamePad", url: "https://abc.server.schooltech.ch/" },
{ id: "xyz", name: "Guacamole", url: "https://xyz.server.schooltech.ch/" }
];
// DOM-Elemente
@@ -82,3 +82,14 @@ function logout() {
nav.innerHTML = "";
loginModal.style.display = "block";
}
// Setzen des Cookies für die Sitzung
function setSessionCookie(res, user) {
res.cookie("SESSIONID", "session-"+user, {
httpOnly: true,
secure: true, // zwingend bei SameSite=None
domain: ".server.schooltech.ch",
sameSite: "None",
path: "/"
});
}