moved websocket to port 6001 to avoid ERR_UNSAFE_PORT in Chrome

This commit is contained in:
2025-05-21 22:07:50 +09:30
parent f03df6fa1d
commit 6b0d0f6960
3 changed files with 4 additions and 4 deletions
@@ -13,7 +13,7 @@ from app.services.cloudflare import CloudflareTunnelManager
from werkzeug.exceptions import abort
from sqlalchemy import or_
websocket_server_url = "http://127.0.0.1:6000/api/create_task"
websocket_server_url = "http://127.0.0.1:6001/api/create_task"
def validate_payload(payload):
+1 -1
View File
@@ -15,7 +15,7 @@ from sqlalchemy import or_
from app.models.network import Network
from app.scheduling_filters import ExcludeAllDisabledHosts, LibvirtCapableHosts, MostAvailableCapacity,ExcludeAllOfflineHosts
websocket_server_url = "http://127.0.0.1:6000/api/create_task"
websocket_server_url = "http://127.0.0.1:6001/api/create_task"
def validate_port_entry(port_entry):
"""
+2 -2
View File
@@ -3,7 +3,7 @@ import requests
import socketio
# API endpoint
API_URL = "http://localhost:6000/api/connected_clients"
API_URL = "http://localhost:6001/api/connected_clients"
def load_clients():
response = requests.get(API_URL)
@@ -14,7 +14,7 @@ def load_clients():
def render():
# Initialize SocketIO client
sio = socketio.Client()
sio.connect("http://localhost:6000")
sio.connect("http://localhost:6001")
st.title("Connected Clients")
clients = load_clients()