mirror of
https://github.com/streamwall/streamwall.git
synced 2026-01-26 15:12:47 -05:00
Add options to override server hostname and port
This commit is contained in:
@@ -81,6 +81,8 @@ export default async function initWebServer({
|
||||
certDir,
|
||||
email,
|
||||
url: baseURL,
|
||||
hostname: overrideHostname,
|
||||
port: overridePort,
|
||||
username,
|
||||
password,
|
||||
getInitialState,
|
||||
@@ -90,6 +92,12 @@ export default async function initWebServer({
|
||||
if (!port) {
|
||||
port = protocol === 'https' ? 443 : 80
|
||||
}
|
||||
if (overrideHostname) {
|
||||
hostname = overrideHostname
|
||||
}
|
||||
if (overridePort) {
|
||||
port = overridePort
|
||||
}
|
||||
|
||||
const { app, broadcastState } = initApp({
|
||||
username,
|
||||
|
||||
Reference in New Issue
Block a user