Compare commits
2 Commits
d85637afcb
...
4a0136c9a3
Author | SHA1 | Date | |
---|---|---|---|
4a0136c9a3 | |||
8b7b009941 |
1
.env.example
Normal file
1
.env.example
Normal file
@ -0,0 +1 @@
|
|||||||
|
UPLOAD_ONLY=1 # Enable upload only for the instance
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
__pycache__
|
__pycache__
|
||||||
upload
|
upload
|
||||||
env
|
env
|
||||||
|
.env
|
||||||
|
2
main.py
2
main.py
@ -11,7 +11,7 @@ from pydantic_settings import BaseSettings, SettingsConfigDict
|
|||||||
|
|
||||||
# Settings
|
# Settings
|
||||||
class Settings(BaseSettings):
|
class Settings(BaseSettings):
|
||||||
upload_only: bool = True
|
upload_only: bool = False
|
||||||
|
|
||||||
model_config = SettingsConfigDict(env_file=".env")
|
model_config = SettingsConfigDict(env_file=".env")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user