fix: bind server to 0.0.0.0 to allow external IP access

This commit is contained in:
2026-04-09 14:24:10 +09:00
parent cf9eecf19f
commit 90ed6c1e1b

View File

@@ -156,8 +156,10 @@ async function startServer() {
await initJwks(); await initJwks();
await initOidc(); await initOidc();
app.listen(PORT, () => { // 0.0.0.0을 명시하여 외부(IP) 접속 허용
app.listen(PORT, '0.0.0.0', () => {
console.log(`Headless Login Demo Server is running on http://172.16.9.208:${PORT}`); console.log(`Headless Login Demo Server is running on http://172.16.9.208:${PORT}`);
console.log(`Local Access: http://localhost:${PORT}`);
console.log(`JWKS Endpoint: http://172.16.9.208:${PORT}/.well-known/jwks.json`); console.log(`JWKS Endpoint: http://172.16.9.208:${PORT}/.well-known/jwks.json`);
}); });
} }