Changeset f99bbe8 in Klonkt for src/server.js
- Timestamp:
- 06/23/2026 10:00:00 PM (3 months ago)
- Branches:
- main
- Children:
- 5eef817
- Parents:
- 09ee2bd
- File:
-
- 1 edited
-
src/server.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/server.js
r09ee2bd rf99bbe8 87 87 const __dirname = path.dirname(fileURLToPath(import.meta.url)); 88 88 const PORT = process.env.PORT || 3000; 89 // Interface to bind. Default 0.0.0.0 (needed for Docker port-forwarding). Behind a 90 // reverse proxy on the same host, set HOST=127.0.0.1 so the app is NOT reachable 91 // directly from the internet (only via the proxy) — see README/install docs. 92 const HOST = process.env.HOST || '0.0.0.0'; 89 93 const isDev = process.env.NODE_ENV !== 'production'; 90 94 … … 427 431 }); 428 432 429 server.listen(PORT, () => {433 server.listen(PORT, HOST, () => { 430 434 console.log(''); 431 435 console.log('🪶 Klonkt Beta');
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)