Remove metrics plugin secrets
This commit is contained in:
parent
e81dbbc39c
commit
abf5b071a4
|
|
@ -1,13 +1,9 @@
|
||||||
from typing import Dict
|
from pydantic import Field, ConfigDict
|
||||||
from pydantic import Field
|
|
||||||
from pydantic_settings import BaseSettings
|
from pydantic_settings import BaseSettings
|
||||||
from typing import Optional
|
|
||||||
# Example: secrets = { "mfdz": "some secret" }
|
# Example: secrets = { "mfdz": "some secret" }
|
||||||
class Secrets(BaseSettings):
|
class Secrets(BaseSettings):
|
||||||
|
model_config = ConfigDict(extra='allow')
|
||||||
ride2go_token: str = Field(None, env = 'RIDE2GO_TOKEN')
|
ride2go_token: str = Field(None, env = 'RIDE2GO_TOKEN')
|
||||||
# TODO: define these as required if metrics plugin is installed
|
|
||||||
metrics_user: Optional[str] = Field(None, env = 'METRICS_USER')
|
|
||||||
metrics_password: Optional[str] = Field(None, env = 'METRICS_PASSWORD')
|
|
||||||
|
|
||||||
|
|
||||||
# Read if file exists, otherwise no error (it's in .gitignore)
|
# Read if file exists, otherwise no error (it's in .gitignore)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue