Base-Skeleton=Axis

This commit is contained in:
chk
2026-06-16 07:24:36 +02:00
parent 90f84d1221
commit ef4c7e6144
2 changed files with 17 additions and 0 deletions

11
.claude/launch.json Normal file
View File

@@ -0,0 +1,11 @@
{
"version": "0.0.1",
"configurations": [
{
"name": "appRobotHoming",
"runtimeExecutable": "node",
"runtimeArgs": ["server/server.js"],
"port": 2093
}
]
}

View File

@@ -27,6 +27,12 @@ const HTTPS_KEY_PATH = process.env.HTTPS_KEY_PATH || path.join(__dirname, '..',
const HTTPS_CERT_PATH = process.env.HTTPS_CERT_PATH || path.join(__dirname, '..', 'https', 'localhost.pem'); const HTTPS_CERT_PATH = process.env.HTTPS_CERT_PATH || path.join(__dirname, '..', 'https', 'localhost.pem');
const HTTPS_PASSPHRASE = process.env.HTTPS_PASSPHRASE || 'abcd'; const HTTPS_PASSPHRASE = process.env.HTTPS_PASSPHRASE || 'abcd';
// .html/.js immer revalidieren lassen (kein stilles Stale-Caching durch Browser/Proxy
// nach Code-Änderungen, z.B. boardViewer.html) Bilder/STL etc. bleiben normal cachebar.
app.use((req, res, next) => {
if (/\.(html|js)$/.test(req.path)) res.setHeader('Cache-Control', 'no-cache');
next();
});
app.use(express.static(publicDir)); app.use(express.static(publicDir));
app.get('/api/health', (req, res) => { app.get('/api/health', (req, res) => {