From 590e22b609b2349aad1fa0feb61cd906de0e9f82 Mon Sep 17 00:00:00 2001 From: Andrey Arapov Date: Sun, 7 May 2017 22:53:45 +0200 Subject: [PATCH] fixes --- Dockerfile | 1 + README.md | 2 +- launch | 3 ++- seeds/local.py.tmpl | 14 ++++++++++---- taiga.env | 2 +- 5 files changed, 15 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5e80f3c..957b196 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,6 +34,7 @@ RUN git clone -b stable https://github.com/taigaio/taiga-back.git taiga-back \ && virtualenv -p /usr/bin/python3.4 venvtaiga \ && . venvtaiga/bin/activate \ && cd taiga-back \ + && pip3 install -U setuptools \ && pip3 install -r requirements.txt \ && deactivate diff --git a/README.md b/README.md index e6f5166..0e854b0 100644 --- a/README.md +++ b/README.md @@ -119,7 +119,7 @@ This file defines individual settings for Taiga. **taiga.env** ``` GUNICORN_WORKERS=1 -SITE_URI=http://taiga.mydomain.com +SITE_URI=http://taiga PUBLIC_REGISTER=true ADMIN_EMAIL=admin@mydomain.com NOREPLY_EMAIL=no-reply@mydomain.com diff --git a/launch b/launch index 799175b..134e8e1 100755 --- a/launch +++ b/launch @@ -45,7 +45,8 @@ chmod +x /already_initialized unset DJANGO_SECRET_KEY TAIGA_DB_PASSWORD # Make sure the dynamic data is writable by the circus/gunicorn -chown -Rh $USER:$GROUP $DATA/media $DATA/taiga-back/taiga/locale $DATA/logs +chown -Rh $USER:$GROUP $DATA/media $DATA/taiga-back/taiga/locale $DATA/logs \ + $DATA/static # Make sure the PostgreSQL database is up and ready while ! ping -c 1 -W 1 $TAIGA_DB_HOST >/dev/null 2>&1; do diff --git a/seeds/local.py.tmpl b/seeds/local.py.tmpl index 5f84f2b..420cac8 100644 --- a/seeds/local.py.tmpl +++ b/seeds/local.py.tmpl @@ -17,10 +17,16 @@ ADMINS = ( # THROTTLING (Anti-flood) REST_FRAMEWORK["DEFAULT_THROTTLE_RATES"] = { - "anon": "20/min", - "user": "200/min", - "import-mode": "20/sec", - "import-dump-mode": "10/minute" + "anon-write": "20/min", + "user-write": None, + "anon-read": None, + "user-read": None, + "import-mode": None, + "import-dump-mode": "10/minute", + "create-memberships": None, + "login-fail": "5/minute", + "register-success": None, + "user-detail": None, } SECRET_KEY = "${DJANGO_SECRET_KEY}" diff --git a/taiga.env b/taiga.env index 17a3b76..ca19833 100644 --- a/taiga.env +++ b/taiga.env @@ -1,5 +1,5 @@ GUNICORN_WORKERS=1 -SITE_URI=http://taiga.mydomain.com +SITE_URI=http://taiga PUBLIC_REGISTER=true ADMIN_EMAIL=admin@mydomain.com NOREPLY_EMAIL=no-reply@mydomain.com