as
This commit is contained in:
parent
ae3080b0de
commit
edf5e76c7f
@ -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
|
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 Configuration (For run_unified_api.py)
|
||||||
UNIFIED_API_HOST=0.0.0.0
|
API_HOST=0.0.0.0
|
||||||
UNIFIED_API_PORT=5005
|
API_PORT=8001
|
||||||
# Add other necessary environment variables for your specific setup
|
# Add other necessary environment variables for your specific setup
|
||||||
|
|
||||||
# Piston API Configuration (For GurtCog run_python_code tool)
|
# Piston API Configuration (For GurtCog run_python_code tool)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# API Server Configuration
|
# API Server Configuration
|
||||||
API_HOST=0.0.0.0
|
API_HOST=0.0.0.0
|
||||||
API_PORT=443
|
API_PORT=8001
|
||||||
DATA_DIR=data
|
DATA_DIR=data
|
||||||
|
|
||||||
# Discord OAuth Configuration
|
# Discord OAuth Configuration
|
||||||
|
@ -44,7 +44,7 @@ class ApiSettings(BaseSettings):
|
|||||||
# Existing API settings (if any were loaded from env before)
|
# Existing API settings (if any were loaded from env before)
|
||||||
GURT_STATS_PUSH_SECRET: Optional[str] = None
|
GURT_STATS_PUSH_SECRET: Optional[str] = None
|
||||||
API_HOST: str = "0.0.0.0" # Keep existing default if used
|
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_CERT_FILE: Optional[str] = None
|
||||||
SSL_KEY_FILE: Optional[str] = None
|
SSL_KEY_FILE: Optional[str] = None
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ class ApiSettings(BaseSettings):
|
|||||||
REDIS_PASSWORD: Optional[str] = None
|
REDIS_PASSWORD: Optional[str] = None
|
||||||
MOD_LOG_API_SECRET: Optional[str] = None
|
MOD_LOG_API_SECRET: Optional[str] = None
|
||||||
API_HOST: str = "0.0.0.0"
|
API_HOST: str = "0.0.0.0"
|
||||||
API_PORT: int = 443
|
API_PORT: int = 8001
|
||||||
SSL_CERT_FILE: Optional[str] = None
|
SSL_CERT_FILE: Optional[str] = None
|
||||||
SSL_KEY_FILE: Optional[str] = None
|
SSL_KEY_FILE: Optional[str] = None
|
||||||
GURT_STATS_PUSH_SECRET: Optional[str] = None
|
GURT_STATS_PUSH_SECRET: Optional[str] = None
|
||||||
|
@ -8,7 +8,7 @@ load_dotenv()
|
|||||||
|
|
||||||
# Get configuration from environment variables
|
# Get configuration from environment variables
|
||||||
host = os.getenv("API_HOST", "0.0.0.0")
|
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")
|
data_dir = os.getenv("DATA_DIR", "data")
|
||||||
|
|
||||||
# Create data directory if it doesn't exist
|
# Create data directory if it doesn't exist
|
||||||
|
@ -17,7 +17,7 @@ load_dotenv()
|
|||||||
|
|
||||||
# Get configuration from environment variables
|
# Get configuration from environment variables
|
||||||
api_host = os.getenv("API_HOST", "0.0.0.0")
|
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
|
# Set SSL certificate paths
|
||||||
ssl_cert = os.getenv("SSL_CERT_FILE", "/etc/letsencrypt/live/slipstreamm.dev/fullchain.pem")
|
ssl_cert = os.getenv("SSL_CERT_FILE", "/etc/letsencrypt/live/slipstreamm.dev/fullchain.pem")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user