Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replication Mariadb #2221

Open
JulEsir opened this issue May 22, 2024 · 2 comments
Open

Replication Mariadb #2221

JulEsir opened this issue May 22, 2024 · 2 comments
Labels
enhancement feature: auto config (environment variables) Auto configuring via environment variables

Comments

@JulEsir
Copy link

JulEsir commented May 22, 2024

Hi,

Currently it's possible to configure Mariadb externalDatabase with environment variable. However it's only possible to set one host mariadb. Since Nextcloud 29, nextcloud allows replication on mariadb : https://docs.nextcloud.com/server/latest/admin_manual/configuration_database/replication.html
Do you know if in the future we will be able to configure mariadb replication with environment variables also?

Thanks

@joshtrichards
Copy link
Member

You can run any occ command you desire via the Auto configuration via hooks supported:

https://github.com/nextcloud/docker#auto-configuration-via-hook-folders

All config.php configuration parameters in Nextcloud can be set via occ config:system:set:

https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/occ_command.html#config-commands

@joshtrichards joshtrichards added needs info Additional info needed to triage question and removed docs labels May 31, 2024
@joshtrichards joshtrichards added feature: auto config (environment variables) Auto configuring via environment variables enhancement and removed question needs info Additional info needed to triage labels Jun 16, 2024
@JulEsir
Copy link
Author

JulEsir commented Jul 12, 2024

Great, I have a problem when i do this i play command like this :
occ config:system:set dbreplica 0 user --value 'myuser'
occ config:system:set dbreplica 0 password --value 'mypassword'
But i have to do all this in only one command, do you know how to do that ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement feature: auto config (environment variables) Auto configuring via environment variables
Projects
None yet
Development

No branches or pull requests

2 participants