1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/diaspora_ynh.git synced 2024-09-03 18:26:13 +02:00
diaspora_ynh/conf/database.yml

55 lines
1.2 KiB
YAML
Raw Normal View History

2019-12-02 21:01:24 +01:00
postgresql: &postgresql
adapter: postgresql
host: "localhost"
port: 5432
2022-05-29 12:45:09 +02:00
username: "__DB_USER__"
password: "__DB_PWD__"
2019-12-02 21:01:24 +01:00
encoding: unicode
2015-02-17 03:39:33 +01:00
mysql: &mysql
adapter: mysql2
host: "localhost"
port: 3306
2019-12-02 21:01:24 +01:00
username: "root"
password: ""
2015-02-17 03:39:33 +01:00
# socket: /tmp/mysql.sock
2019-12-02 21:01:24 +01:00
encoding: utf8mb4
2017-02-08 21:02:56 +01:00
collation: utf8mb4_bin
2015-02-17 03:39:33 +01:00
2019-12-02 21:01:24 +01:00
# Comment the postgresql line and uncomment the mysql line
# if you want to use mysql
2015-02-17 03:39:33 +01:00
common: &common
# Choose one of the following
2019-12-02 21:01:24 +01:00
<<: *postgresql
#<<: *mysql
2015-02-17 03:39:33 +01:00
# Should match environment.sidekiq.concurrency
#pool: 25
2019-12-02 21:01:24 +01:00
2015-02-17 03:39:33 +01:00
##################################################
#### CONFIGURE ABOVE #############################
##################################################
# Normally you don't need to touch anything here
2019-12-02 21:01:24 +01:00
# ynh note: we actually do :-) how about having different database name for
# different instances on the same postgres cluster?
2015-02-17 03:39:33 +01:00
combined: &combined
<<: *common
development:
<<: *combined
database: diaspora_development
production:
<<: *combined
2022-05-29 12:45:09 +02:00
database: __DB_NAME__
2015-02-17 03:39:33 +01:00
test:
<<: *combined
2019-12-02 21:01:24 +01:00
database: diaspora_test
2015-02-17 03:39:33 +01:00
integration1:
<<: *combined
database: diaspora_integration1
integration2:
<<: *combined
database: diaspora_integration2