Skip to content

Add configuration file support for server settings #248

@hacha

Description

@hacha

Summary

Support configuration file for server settings. Currently, all parameters are passed via command-line arguments, which becomes unwieldy as the number of settings grows.

Current State

Settings are managed via:

  • Command-line arguments (limited: discovery port, logging options)
  • Hardcoded constants (ports, timeouts, NetworkVariable limits, etc.)

Proposal

  • Add --config option to specify a configuration file
  • CLI arguments override config file values when both are specified
  • Suggested format: TOML (Python 3.11+ has built-in support via tomllib)

Example

styly-netsync-server --config config.toml
styly-netsync-server --config config.toml --dealer-port 6666  # override

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions