Compare commits
2 commits
8d3d72412f
...
78602c4ef9
Author | SHA1 | Date | |
---|---|---|---|
78602c4ef9 | |||
668c868a38 |
3 changed files with 8 additions and 7 deletions
|
@ -45,12 +45,12 @@ def secret_key_check(name: SecretKey) -> None:
|
|||
key_file = Path(f'/tmp/{name}')
|
||||
|
||||
if key_file.exists():
|
||||
with key_file.open('rt') as f:
|
||||
with key_file.open('rt', encoding='utf-8') as f:
|
||||
key = f.read()
|
||||
|
||||
else:
|
||||
key = secrets.token_hex(32)
|
||||
with key_file.open('wt') as f:
|
||||
with key_file.open('wt', encoding='utf-8') as f:
|
||||
f.write(key)
|
||||
|
||||
settings_dict[name] = key
|
||||
|
|
|
@ -4,6 +4,7 @@ version = "1.0.0"
|
|||
dependencies = [
|
||||
"fastapi",
|
||||
"uvicorn[standard]",
|
||||
"gunicorn",
|
||||
"jinja2",
|
||||
"starlette-wtf",
|
||||
"sqlalchemy",
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
fastapi~=0.93.0
|
||||
starlette
|
||||
pydantic
|
||||
fastapi==0.95.0
|
||||
starlette~=0.26.1
|
||||
pydantic~=1.10.7
|
||||
|
||||
uvicorn[standard]~=0.21.0
|
||||
uvicorn[standard]~=0.21.1
|
||||
gunicorn~=20.1.0
|
||||
|
||||
jinja2~=3.1.2
|
||||
starlette-wtf~=0.4.3
|
||||
wtforms~=3.0.1
|
||||
|
||||
sqlalchemy~=2.0.5.post1
|
||||
sqlalchemy~=2.0.7
|
||||
sqlalchemy-utils~=0.40.0
|
||||
mysqlclient~=2.1.1
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue