mirror of
https://github.com/Myxelium/RandomMemerBot.git
synced 2026-04-11 09:39:40 +00:00
Changed ports
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user