Merge pull request #3529 from okriuchykhin/config_updates

Update default config and compose production file
This commit is contained in:
Alex Kriuchykhin 2021-09-17 16:38:09 +02:00 committed by GitHub
commit bc481dc151
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View file

@ -6,10 +6,10 @@ define PRODUCTION_CONFIG_BODY
SECRET_KEY_BASE=$(shell openssl rand -hex 64)
PAPERCLIP_HASH_SECRET=$(shell openssl rand -base64 128 | tr -d '\n')
DATABASE_URL=postgresql://postgres:mysecretpassword@db/scinote_production
PAPERCLIP_STORAGE=filesystem
ACTIVESTORAGE_SERVICE=local
ENABLE_RECAPTCHA=false
ENABLE_USER_CONFIRMATION=false
ENABLE_USER_REGISTRATION=true
ENABLE_USER_REGISTRATION=false
DEFACE_ENABLED=false
endef
export PRODUCTION_CONFIG_BODY

View file

@ -5,8 +5,6 @@ services:
image: postgres:11
volumes:
- scinote_production_postgres:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
- "POSTGRES_USER=postgres"
- "POSTGRES_PASSWORD=mysecretpassword"