[#4] load secret key from env variable
Some checks failed
Amarillo/amarillo-gitea/amarillo-core/pipeline/head There was a failure building this commit

This commit is contained in:
Csaba 2024-03-01 16:01:02 +01:00
parent 206f93ddde
commit b1aeac37df

View file

@ -4,7 +4,7 @@ from pydantic_settings import BaseSettings
class Secrets(BaseSettings): class Secrets(BaseSettings):
model_config = ConfigDict(extra='allow') model_config = ConfigDict(extra='allow')
ride2go_token: str = Field(None, env = 'RIDE2GO_TOKEN') ride2go_token: str = Field(None, env = 'RIDE2GO_TOKEN')
secret_key: str secret_key: str = Field(None, env = 'SECRET_KEY')
# Read if file exists, otherwise no error (it's in .gitignore) # Read if file exists, otherwise no error (it's in .gitignore)