We value your privacy

This site uses cookies to improve your browsing experience, analyze site traffic, and show personalized content. See our Privacy Policy.

  1. MooseStack
  2. Configuration
  3. HTTP Server Configuration

HTTP Server Configuration

Configure the local development server.

moose.config.toml
[http_server_config]# Host to bind the webserver to (Default: "localhost")host = "localhost"# Port for the main API server (Default: 4000)port = 4000# Port for the management server (Default: 5001)management_port = 5001# Script to run once when moose dev first starts (optional)on_first_start_script = "uv run python app/scripts/setup_views.py"# Script to run after every successful reload (optional)on_reload_complete_script = "uv run python app/scripts/setup_views.py"
KeyEnv VariableDefaultDescription
hostMOOSE_HTTP_SERVER_CONFIG__HOST"localhost"Server bind address.
portMOOSE_HTTP_SERVER_CONFIG__PORT4000Main API port.
management_portMOOSE_HTTP_SERVER_CONFIG__MANAGEMENT_PORT5001Internal management port.
on_first_start_scriptMOOSE_HTTP_SERVER_CONFIG__ON_FIRST_START_SCRIPT—Shell command run once when moose dev starts, after all infrastructure is applied. See Dev Environment — Lifecycle Hooks.
on_reload_complete_scriptMOOSE_HTTP_SERVER_CONFIG__ON_RELOAD_COMPLETE_SCRIPT—Shell command run after every successful reload. See Dev Environment — Lifecycle Hooks.
Edit this page
FiveonefourFiveonefour
Fiveonefour Docs
MooseStackHostingTemplatesGuides
Release Notes
Source576
  • Overview
Build a New App
  • 5 Minute Quickstart
  • Browse Templates
  • Existing ClickHouse
Add to Existing App
  • Next.js
  • Fastify
Fundamentals
  • Moose Server
  • MooseDev MCP
  • Language Server
  • Data Modeling
Moose Modules
  • Moose OLAP
  • Moose Streams
  • Moose Workflows
  • Moose APIs & Web Apps
Deployment & Lifecycle
  • Moose Dev
  • Moose Migrate
  • Moose Deploy
Reference
  • API Reference
  • Query Layer
  • Testing Utilities
  • Data Types
  • Table Engines
  • CLI
  • Configuration
    • Core Settings
    • Project Settings
    • TypeScript
    • Telemetry
    • Git
    • Features
    • Migrations
    • Docker
    • Infrastructure
    • ClickHouse
    • Redpanda
    • Redis
    • Temporal
    • HTTP Server
    • State Storage
    • Security
    • JWT
    • Row-Level Security
    • Admin API
    • Development
    • Dev Environment
  • Observability Metrics
  • Help
  • Release Notes
Contribution
  • Documentation
  • Framework