diff --git a/goosebit/settings/schema.py b/goosebit/settings/schema.py index 24dafc2e..7581bf34 100644 --- a/goosebit/settings/schema.py +++ b/goosebit/settings/schema.py @@ -43,6 +43,8 @@ class MetricsSettings(BaseModel): class GooseBitSettings(BaseSettings): model_config = SettingsConfigDict(env_prefix="GOOSEBIT_") + port: int = 60053 # GOOSE + artifacts_dir: Path = BASE_DIR.joinpath("artifacts") poll_time_default: str = "00:01:00" diff --git a/main.py b/main.py index 83ab6d7c..37e4f514 100644 --- a/main.py +++ b/main.py @@ -7,7 +7,6 @@ logging.config.dictConfig(config.logging) -uvicorn_args = {"port": 80} if __name__ == "__main__": - uvicorn.run(app, host="0.0.0.0", **uvicorn_args) + uvicorn.run(app, host="0.0.0.0", port=config.port) diff --git a/settings.yaml b/settings.yaml index c9a02c73..a5c8280f 100644 --- a/settings.yaml +++ b/settings.yaml @@ -1,5 +1,8 @@ ## Settings to adjust for each installation +# Port to host the server on, default: +# port: 60053 # GOOSE ;) + # Database to be used, default: # db_uri: sqlite:////db.sqlite3