mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-08 14:15:35 +08:00
Update default config and compose production file
This commit is contained in:
parent
ccc2964aff
commit
cbf0b2a2b5
2 changed files with 2 additions and 4 deletions
4
Makefile
4
Makefile
|
@ -6,10 +6,10 @@ define PRODUCTION_CONFIG_BODY
|
||||||
SECRET_KEY_BASE=$(shell openssl rand -hex 64)
|
SECRET_KEY_BASE=$(shell openssl rand -hex 64)
|
||||||
PAPERCLIP_HASH_SECRET=$(shell openssl rand -base64 128 | tr -d '\n')
|
PAPERCLIP_HASH_SECRET=$(shell openssl rand -base64 128 | tr -d '\n')
|
||||||
DATABASE_URL=postgresql://postgres:mysecretpassword@db/scinote_production
|
DATABASE_URL=postgresql://postgres:mysecretpassword@db/scinote_production
|
||||||
PAPERCLIP_STORAGE=filesystem
|
ACTIVESTORAGE_SERVICE=local
|
||||||
ENABLE_RECAPTCHA=false
|
ENABLE_RECAPTCHA=false
|
||||||
ENABLE_USER_CONFIRMATION=false
|
ENABLE_USER_CONFIRMATION=false
|
||||||
ENABLE_USER_REGISTRATION=true
|
ENABLE_USER_REGISTRATION=false
|
||||||
DEFACE_ENABLED=false
|
DEFACE_ENABLED=false
|
||||||
endef
|
endef
|
||||||
export PRODUCTION_CONFIG_BODY
|
export PRODUCTION_CONFIG_BODY
|
||||||
|
|
|
@ -5,8 +5,6 @@ services:
|
||||||
image: postgres:11
|
image: postgres:11
|
||||||
volumes:
|
volumes:
|
||||||
- scinote_production_postgres:/var/lib/postgresql/data
|
- scinote_production_postgres:/var/lib/postgresql/data
|
||||||
ports:
|
|
||||||
- "5432:5432"
|
|
||||||
environment:
|
environment:
|
||||||
- "POSTGRES_USER=postgres"
|
- "POSTGRES_USER=postgres"
|
||||||
- "POSTGRES_PASSWORD=mysecretpassword"
|
- "POSTGRES_PASSWORD=mysecretpassword"
|
||||||
|
|
Loading…
Add table
Reference in a new issue