moved websocket to port 6001 to avoid ERR_UNSAFE_PORT in Chrome
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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):
|
||||
"""
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user