This PR allows Spire's HTTP server to be additionally configured in two more places.
Currently, you can run
./spire http:serve --port=x
To run Spire's web services on a specific port. This does not go through the traditional booting mechanisms when Spire is ran on a fully installed server. The default mechanism also chooses a random range 8090 through 8099 which is commonly used on desktop machines and also used when Spire is ran with no arguments
This PR allows you to be able to specify a default port through
eqemu_config.json @ spire.http_port if it exists
Environment variable SPIRE_HTTP_PORT if it exists
For example
SPIRE_HTTP_PORT=3001 go run main.go
Results in
... truncated
A rich, portable server editing and development toolkit for EverQuest Emulator servers
⇨ http server started on [::]:3001
This PR allows Spire's HTTP server to be additionally configured in two more places.
Currently, you can run
To run Spire's web services on a specific port. This does not go through the traditional booting mechanisms when Spire is ran on a fully installed server. The default mechanism also chooses a random range 8090 through 8099 which is commonly used on desktop machines and also used when Spire is ran with no arguments
This PR allows you to be able to specify a default port through
SPIRE_HTTP_PORT
if it existsFor example
Results in