mirror of
https://github.com/YunoHost-Apps/diaspora_ynh.git
synced 2024-09-03 18:26:13 +02:00
54 lines
1.2 KiB
YAML
54 lines
1.2 KiB
YAML
postgresql: &postgresql
|
|
adapter: postgresql
|
|
host: "localhost"
|
|
port: 5432
|
|
username: "{{ app }}"
|
|
password: "{{ db_pass }}"
|
|
encoding: unicode
|
|
|
|
mysql: &mysql
|
|
adapter: mysql2
|
|
host: "localhost"
|
|
port: 3306
|
|
username: "root"
|
|
password: ""
|
|
# socket: /tmp/mysql.sock
|
|
encoding: utf8mb4
|
|
collation: utf8mb4_bin
|
|
|
|
|
|
# Comment the postgresql line and uncomment the mysql line
|
|
# if you want to use mysql
|
|
common: &common
|
|
# Choose one of the following
|
|
<<: *postgresql
|
|
#<<: *mysql
|
|
|
|
# Should match environment.sidekiq.concurrency
|
|
#pool: 25
|
|
|
|
##################################################
|
|
#### CONFIGURE ABOVE #############################
|
|
##################################################
|
|
|
|
# Normally you don't need to touch anything here
|
|
# ynh note: we actually do :-) how about having different database name for
|
|
# different instances on the same postgres cluster?
|
|
|
|
combined: &combined
|
|
<<: *common
|
|
development:
|
|
<<: *combined
|
|
database: diaspora_development
|
|
production:
|
|
<<: *combined
|
|
database: {{ app }}
|
|
test:
|
|
<<: *combined
|
|
database: diaspora_test
|
|
integration1:
|
|
<<: *combined
|
|
database: diaspora_integration1
|
|
integration2:
|
|
<<: *combined
|
|
database: diaspora_integration2
|