Change HTTPS port

This commit is contained in:
Chigozirim Igweamaka 2024-06-09 05:13:58 +01:00
parent d88e27ddf0
commit 8537fc1e19
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 := ":4443" httpsAddr := ":443"
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:4443) HTTPS_PID=$(sudo lsof -t -i:443)
if [ -n "$HTTP_PID" ]; then if [ -n "$HTTP_PID" ]; then