The gMountie server can be started using the serve command with various
options to customize its behavior.
The basic syntax for starting the server is:
gmountie serve [flags]| Flag | Short | Default | Description |
|---|---|---|---|
| --config | -c | ~/.config/gmountie/server.yaml | Path to configuration file |
| --verbose | -v | false | Enable verbose logging |
If no configuration file is specified, gMountie will:
- Look for a config file at
~/.config/gmountie/server.yaml - If not found, create a default configuration file at that location
- Use the following default configuration:
server:
address: 127.0.0.1
port: 9449
metrics: true
auth:
type: basic
users:
- username: admin
password: admin-
Start server with default configuration:
gmountie serve
-
Start server with custom config file:
gmountie serve -c /path/to/config.yaml
-
Start server with verbose logging:
gmountie serve -v
- Default configuration uses basic authentication
- Production deployments should:
- Use a custom configuration file
- Change default credentials
- Consider using TLS
- Bind to specific network interfaces
- Server Configuration - Detailed configuration file options