Change HTTPS port

This commit is contained in:
Chigozirim Igweamaka 2024-06-10 08:19:31 +01:00
parent 7024aba3c7
commit 96e9c39bc1
2 changed files with 2 additions and 2 deletions

View file

@ -90,7 +90,7 @@ func serveHTTP(socketServer *socketio.Server, serveHTTPS bool) {
http.Handle("/socket.io/", socketServer) http.Handle("/socket.io/", socketServer)
if serveHTTPS { if serveHTTPS {
httpsAddr := ":443" httpsAddr := ":4443"
httpsServer := &http.Server{ httpsServer := &http.Server{
Addr: httpsAddr, Addr: httpsAddr,
TLSConfig: &tls.Config{ TLSConfig: &tls.Config{

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
HTTP_PID=$(sudo lsof -t -i:5000) HTTP_PID=$(sudo lsof -t -i:5000)
HTTPS_PID=$(sudo lsof -t -i:443) HTTPS_PID=$(sudo lsof -t -i:4443)
if [ -n "$HTTP_PID" ]; then if [ -n "$HTTP_PID" ]; then