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 <