amitmiran137 commented on a change in pull request #15296: URL: https://github.com/apache/superset/pull/15296#discussion_r658204855
########## File path: superset/config.py ########## @@ -1221,6 +1222,12 @@ def CSV_TO_HIVE_UPLOAD_DIRECTORY_FUNC( SQLALCHEMY_DOCS_URL = "https://docs.sqlalchemy.org/en/13/core/engines.html" SQLALCHEMY_DISPLAY_TEXT = "SQLAlchemy docs" +# The environment type the application run on: "multithreaded", "multiprocess" and +# "single" +ENVIRONMENT_TYPE = os.environ.get("ENVIRONMENT_TYPE", "multithreaded") + +COOKIE_SIGNING_KEY = os.environ.get("COOKIE_SIGNING_KEY", SECRET_KEY) Review comment: ```suggestion # it is also possible to use a lambda to load on every usage and change on the fly upon env var update like the following # COOKIE_SIGNING_KEY = lambda: os.environ.get("COOKIE_SIGNING_KEY", SECRET_KEY) COOKIE_SIGNING_KEY = os.environ.get("COOKIE_SIGNING_KEY", SECRET_KEY) ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
