*Remove ssl support for now
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
This commit is contained in:
parent
b7fc6834eb
commit
ce5d66095f
|
@ -15,7 +15,6 @@ import log from "loglevel";
|
||||||
import { AddressInfo } from "net";
|
import { AddressInfo } from "net";
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import promiseRetry from "promise-retry";
|
import promiseRetry from "promise-retry";
|
||||||
import { getSslContext } from "./ssl.js";
|
|
||||||
|
|
||||||
export async function start() {
|
export async function start() {
|
||||||
const relayPort = config.uint("port");
|
const relayPort = config.uint("port");
|
||||||
|
@ -43,15 +42,7 @@ export async function start() {
|
||||||
|
|
||||||
let relayServer: https.Server | http.Server;
|
let relayServer: https.Server | http.Server;
|
||||||
|
|
||||||
if (config.bool("ssl")) {
|
|
||||||
relayServer = https.createServer({
|
|
||||||
SNICallback(servername, cb) {
|
|
||||||
cb(null, getSslContext());
|
|
||||||
},
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
relayServer = http.createServer();
|
relayServer = http.createServer();
|
||||||
}
|
|
||||||
|
|
||||||
let wsServer = new WS.Server({ server: relayServer });
|
let wsServer = new WS.Server({ server: relayServer });
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue