Administration/Configuration Files
Server Configuration
Configure the server settings for your Gigantics instance, including host, port, and base URL.
Configuration Properties
The server configuration section in your config/default.yaml file controls how the Gigantics web server operates:
Property Details
baseUrl
- Type: String
- Default:
'http://localhost:5000' - Description: The base URL where your Gigantics instance will be accessible. This is used for generating links in emails and other absolute URLs.
host
- Type: String
- Default:
'localhost' - Description: The hostname or IP address the server will bind to. Use
'0.0.0.0'to bind to all available interfaces.
port
- Type: Number
- Default:
5000 - Description: The port number the server will listen on.
Examples
Development Configuration
Production Configuration
Custom Port Configuration
Best Practices
- Development vs Production: Use different settings for development and production environments
- Security: In production, always set a proper baseUrl with HTTPS
- Accessibility: Use host
'0.0.0.0'if you want the server to be accessible from other machines - Port Selection: Choose an appropriate port that doesn't conflict with other services
Testing Configuration Changes
After modifying server configuration, restart the application:
Then verify the server is running on the specified host and port.