[#4] load secret key from env variable
Some checks failed
Amarillo/amarillo-gitea/amarillo-core/pipeline/head There was a failure building this commit
Some checks failed
Amarillo/amarillo-gitea/amarillo-core/pipeline/head There was a failure building this commit
This commit is contained in:
parent
206f93ddde
commit
b1aeac37df
|
|
@ -4,7 +4,7 @@ from pydantic_settings import BaseSettings
|
|||
class Secrets(BaseSettings):
|
||||
model_config = ConfigDict(extra='allow')
|
||||
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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue