From ac9e413a080b36761b7fd8de5b67dddc6cfd1256 Mon Sep 17 00:00:00 2001 From: Sergio Oliveira Date: Thu, 27 Aug 2015 22:38:27 -0300 Subject: [PATCH] Updated colab settings --- colab/colab.spec | 151 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------------------------ 1 file changed, 91 insertions(+), 60 deletions(-) diff --git a/colab/colab.spec b/colab/colab.spec index ac0ac62..f742464 100644 --- a/colab/colab.spec +++ b/colab/colab.spec @@ -94,72 +94,103 @@ if ! id colab; then useradd --system --gid colab --home-dir /usr/lib/colab --no-create-home colab fi -if [ ! -f /etc/colab/settings.yaml ]; then +if [ ! -f /etc/colab/settings.py ]; then SECRET_KEY=$(openssl rand -hex 32) - cat > /etc/colab/settings.yaml <' -SERVER_EMAIL: '"Colab" ' - -EMAIL_HOST: localhost -EMAIL_PORT: 25 -EMAIL_SUBJECT_PREFIX: '[colab]' - -SECRET_KEY: '$SECRET_KEY' - -SITE_URL: 'http://localhost:8001/' -BROWSERID_AUDIENCES: - - http://localhost:8001 -# - http://example.com -# - https://example.org -# - http://example.net - -ALLOWED_HOSTS: - - localhost -# - example.com -# - example.org -# - example.net - -## Disable indexing -ROBOTS_NOINDEX: false - -## Disable browser id authentication -# BROWSERID_ENABLED: true + cat > /etc/colab/settings.py < /etc/colab/settings.d/00-database.yaml <