diff --git a/uncloud/README.md b/uncloud/README.md index 9db1c5c..6d5f1c8 100644 --- a/uncloud/README.md +++ b/uncloud/README.md @@ -39,6 +39,9 @@ Then create the database owner by the new role: postgres=# create database uncloud owner nico; ``` +Installing the postgresql service is os dependent, but some hints: + +* Alpine: `apk add postgresql-server && rc-update add postgresql && rc-service postgresql start` ### Secrets diff --git a/uncloud/uncloud/settings.py b/uncloud/uncloud/settings.py index f671dc5..bdef1df 100644 --- a/uncloud/uncloud/settings.py +++ b/uncloud/uncloud/settings.py @@ -142,6 +142,7 @@ AUTH_USER_MODEL = 'uncloud_auth.User' # AUTH/REST REST_FRAMEWORK = { 'DEFAULT_AUTHENTICATION_CLASSES': [ + 'rest_framework.authentication.BasicAuthentication', 'rest_framework.authentication.SessionAuthentication', ] }