Standardport wieder 3000, Port 80 per Umgebungsvariable
Port 80 stammt aus dem Kiosk-Setup auf dem Pi, wo Chromium die Seite ohne Portangabe unter http://localhost oeffnet. Als Default erzwingt er lokal erhoehte Rechte. Auf dem Pi stattdessen PORT=80 setzen. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
ac3e8b183c
commit
6aa5a7b025
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ var http = require('http');
|
||||||
* Get port from environment and store in Express.
|
* Get port from environment and store in Express.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var port = normalizePort(process.env.PORT || '80');
|
var port = normalizePort(process.env.PORT || '3000');
|
||||||
app.set('port', port);
|
app.set('port', port);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue