Changed ports

This commit is contained in:
Myx
2023-10-15 13:31:17 +02:00
parent 1d3b617823
commit b841d0c446

View File

@@ -122,7 +122,7 @@ app.delete('/sounds/:filename', (req, res) => {
app.use(express.static(path.join(__dirname, "web"))); app.use(express.static(path.join(__dirname, "web")));
export function startServer() { export function startServer() {
const port = 8080; let port: 80 | 443 = 80;
let server; let server;
let ssl: "https" | "http" = "http"; let ssl: "https" | "http" = "http";
@@ -135,6 +135,7 @@ export function startServer() {
}; };
server = https.createServer(options, app); server = https.createServer(options, app);
ssl = "https"; ssl = "https";
port = 443;
} catch (error) { } catch (error) {
console.log(LoggerColors.Yellow, 'Could not find SSL certificates, falling back to http.'); console.log(LoggerColors.Yellow, 'Could not find SSL certificates, falling back to http.');
server = app; server = app;