From f9e54a6cf6f4b35a20087081d5c2c99fd10d08cc Mon Sep 17 00:00:00 2001 From: Sergey Lyapustin Date: Fri, 24 Jun 2022 20:48:52 +0200 Subject: [PATCH] Use Free Dyno. Disable authentication. --- airflow.cfg | 9 +++------ app.json | 4 ++-- webserver_config.py | 1 + 3 files changed, 6 insertions(+), 8 deletions(-) create mode 100644 webserver_config.py diff --git a/airflow.cfg b/airflow.cfg index 8a5f038..6eb4102 100644 --- a/airflow.cfg +++ b/airflow.cfg @@ -2,14 +2,11 @@ broker_url = $REDIS_URL sql_alchemy_conn = $DATABASE_URL executor = CeleryExecutor - -# Do not load examples DAGs -load_examples = False +load_examples = True [webserver] -authenticate = True -auth_backend = airflow.contrib.auth.backends.password_auth -rbac = True # Required for role-based-access-control +authenticate = False +rbac = False [database] sql_alchemy_conn = $DATABASE_URL diff --git a/app.json b/app.json index 9bf9992..3121560 100644 --- a/app.json +++ b/app.json @@ -21,11 +21,11 @@ "formation": { "web": { "quantity": 1, - "size": "hobby" + "size": "free" }, "worker": { "quantity": 1, - "size": "hobby" + "size": "free" } }, "scripts": { diff --git a/webserver_config.py b/webserver_config.py new file mode 100644 index 0000000..ca15f92 --- /dev/null +++ b/webserver_config.py @@ -0,0 +1 @@ +AUTH_ROLE_PUBLIC = 'Admin'