This commit is contained in:
Slipstream 2025-05-10 22:13:37 -06:00
parent ae3080b0de
commit edf5e76c7f
Signed by: slipstream
GPG Key ID: 13E498CE010AC6FD
6 changed files with 8 additions and 8 deletions

View File

@ -37,8 +37,8 @@ MOD_LOG_API_SECRET=YOUR_MOD_LOG_API_SECRET_HERE
API_BASE_URL=http://127.0.0.1:5001 # Example URL for the API server
# Unified API Configuration (For run_unified_api.py)
UNIFIED_API_HOST=0.0.0.0
UNIFIED_API_PORT=5005
API_HOST=0.0.0.0
API_PORT=8001
# Add other necessary environment variables for your specific setup
# Piston API Configuration (For GurtCog run_python_code tool)

View File

@ -1,6 +1,6 @@
# API Server Configuration
API_HOST=0.0.0.0
API_PORT=443
API_PORT=8001
DATA_DIR=data
# Discord OAuth Configuration

View File

@ -44,7 +44,7 @@ class ApiSettings(BaseSettings):
# Existing API settings (if any were loaded from env before)
GURT_STATS_PUSH_SECRET: Optional[str] = None
API_HOST: str = "0.0.0.0" # Keep existing default if used
API_PORT: int = 443 # Keep existing default if used
API_PORT: int = 8001 # Changed default port to 8001
SSL_CERT_FILE: Optional[str] = None
SSL_KEY_FILE: Optional[str] = None

View File

@ -28,7 +28,7 @@ class ApiSettings(BaseSettings):
REDIS_PASSWORD: Optional[str] = None
MOD_LOG_API_SECRET: Optional[str] = None
API_HOST: str = "0.0.0.0"
API_PORT: int = 443
API_PORT: int = 8001
SSL_CERT_FILE: Optional[str] = None
SSL_KEY_FILE: Optional[str] = None
GURT_STATS_PUSH_SECRET: Optional[str] = None

View File

@ -8,7 +8,7 @@ load_dotenv()
# Get configuration from environment variables
host = os.getenv("API_HOST", "0.0.0.0")
port = int(os.getenv("API_PORT", "8000"))
port = int(os.getenv("API_PORT", "8001"))
data_dir = os.getenv("DATA_DIR", "data")
# Create data directory if it doesn't exist

View File

@ -17,7 +17,7 @@ load_dotenv()
# Get configuration from environment variables
api_host = os.getenv("API_HOST", "0.0.0.0")
api_port = int(os.getenv("API_PORT", "443"))
api_port = int(os.getenv("API_PORT", "8001"))
# Set SSL certificate paths
ssl_cert = os.getenv("SSL_CERT_FILE", "/etc/letsencrypt/live/slipstreamm.dev/fullchain.pem")