File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,10 +26,10 @@ class Config:
2626 with open ('/etc/pythonrestapi_config.json' , 'r' ) as f :
2727 config = json .load (f )
2828 TESTING = False
29- environment = config ["ENVIRONMENT" ],
30- LOGLEVEL = config ['LOGLEVEL' ],
31- SECRET_KEY = config ["SECRET_KEY" ] or "you-will-never-guess" ,
32- JWT_SECRET_KEY = config ["JWT_SECRET_KEY" ] if "JWT_SECRET_KEY" in config and len (config ["JWT_SECRET_KEY" ]) >= 64 else secrets .token_hex (64 ),
29+ environment = config ["ENVIRONMENT" ]
30+ LOGLEVEL = config ['LOGLEVEL' ]
31+ SECRET_KEY = config ["SECRET_KEY" ] or "you-will-never-guess"
32+ JWT_SECRET_KEY = config ["JWT_SECRET_KEY" ] if "JWT_SECRET_KEY" in config and len (config ["JWT_SECRET_KEY" ]) >= 64 else secrets .token_hex (64 )
3333 SQLALCHEMY_DATABASE_URI = f"postgresql+psycopg://{ os .environ .get ('DB_USERNAME' )} :{ parse .quote_plus (os .environ .get ('DB_PASSWORD' ))} @{ config ['DB_HOST' ]} /library"
3434 POSTGRESQL_DATABASE_URI = f"postgresql://{ os .environ .get ('DB_USERNAME' )} :{ parse .quote_plus (os .environ .get ('DB_PASSWORD' ))} @{ config ['DB_HOST' ]} /library"
3535 GEMINI_API_KEY = os .environ .get ("GEMINI_API_KEY" )
You can’t perform that action at this time.
0 commit comments