Skip to content

Commit

Permalink
fix: updated config in cirrus.js
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-muzelak committed Jan 25, 2024
1 parent ae331e7 commit 07b84d2
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 40 deletions.
65 changes: 44 additions & 21 deletions SignallingWebServer/cirrus.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,51 @@ logging.RegisterConsoleLogger();

// Command line argument --configFile needs to be checked before loading the config, all other command line arguments are dealt with through the config object

// const defaultConfig = {
// UseFrontend: false,
// UseMatchmaker: false,
// UseHTTPS: false,
// HTTPSCertFile: "./certificates/client-cert.pem",
// HTTPSKeyFile: "./certificates/client-key.pem",
// UseAuthentication: false,
// LogToFile: true,
// LogVerbose: true,
// HomepageFile: "player.html",
// AdditionalRoutes: new Map(),
// EnableWebserver: true,
// MatchmakerAddress: "",
// MatchmakerPort: 9999,
// PublicIp: "localhost",
// HttpPort: 80,
// HttpsPort: 443,
// StreamerPort: 8888,
// SFUPort: 8889,
// MaxPlayerCount: -1,
// DisableSSLCert: true,
// };

const defaultConfig = {
UseFrontend: false,
UseMatchmaker: false,
UseHTTPS: false,
HTTPSCertFile: "./certificates/client-cert.pem",
HTTPSKeyFile: "./certificates/client-key.pem",
UseAuthentication: false,
LogToFile: true,
LogVerbose: true,
HomepageFile: "player.html",
AdditionalRoutes: new Map(),
EnableWebserver: true,
MatchmakerAddress: "",
MatchmakerPort: 9999,
PublicIp: "localhost",
HttpPort: 80,
HttpsPort: 443,
StreamerPort: 8888,
SFUPort: 8889,
MaxPlayerCount: -1,
DisableSSLCert: true,
};
"UseFrontend": false,
"UseMatchmaker": false,
"UseHTTPS": true,
"HTTPSCertFile": "/etc/nginx/ssl/server.crt",
"HTTPSKeyFile": "/etc/nginx/ssl/server.key",
"UseAuthentication": false,
"LogToFile": true,
"LogVerbose": true,
"HomepageFile": "player.html",
"AdditionalRoutes": {},
"EnableWebserver": true,
"MatchmakerAddress": "",
"MatchmakerPort": "9999",
"PublicIp": "server-pixel-streaming",
"HttpPort": 6060,
"HttpsPort": 6061,
"StreamerPort": 8888,
"SFUPort": 8889,
"MaxPlayerCount": -1,
"peerConnectionOptions": "{ \"iceServers\": [{\"urls\": [\"stun:stun.l.google.com:19302\",\"turn:35.158.232.32:3478?transport=tcp\"], \"username\": \"PixelStreamingUser\", \"credential\": \"AnotherTURNintheroad\"}] }"
}

const argv = require("yargs").argv;
var configFile =
Expand Down
19 changes: 0 additions & 19 deletions SignallingWebServer/config.json

This file was deleted.

0 comments on commit 07b84d2

Please sign in to comment.