# I want to implement a master-slave switchover

**URL:** <https://community.passbolt.com/t/i-want-to-implement-a-master-slave-switchover/12766>\
**Category:** Installation Issues\
**Created:** [April 16, 2025, 9:03am UTC](https://community.passbolt.com/t/i-want-to-implement-a-master-slave-switchover/12766 "2025-04-16T09:03:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![syx](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@syx](https://community.passbolt.com/u/syx)\
**Post date:** [April 16, 2025, 9:03am UTC](https://community.passbolt.com/t/i-want-to-implement-a-master-slave-switchover/12766/1 "2025-04-16T09:03:54Z")

</div>

Hi, I’m really sorry I have a question. I want to implement a master-slave switchover. I have now deployed passbolt on both VMS, synchronized the sql files, configuration files, and gpg backups, installed keepalived, and configured a virtual ip (which will be configured with a domain name later). I want to access this domain name to ensure high availability of the passbolt service. Which configuration should I change for each passbolt? Now I modify the/etc/passbolt/passbolt fullbaseurl in PHP for the virtual IP, I need in the/etc/nginx/conf. d/passbolt. conf modify inside?  
**Checklist**  
 I have read intro post: [https://community.passbolt.com/t/about-the-installation-issues-category/12](https://community.passbolt.com/t/about-the-installation-issues-category/12)  
 I have read the tutorials, help and searched for similar issues  
 I provide relevant information about my server (component names and versions, etc.)  
 I provide a copy of my logs and healthcheck  
 I describe the steps I have taken to trouble shoot the problem  
 I describe the steps on how to reproduce the issue

---

<div class="post-metadata">

**Author:** ![max](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/max/32/1528_2.png) [@max](https://community.passbolt.com/u/max)\
**Post date:** [April 16, 2025, 10:57am UTC](https://community.passbolt.com/t/i-want-to-implement-a-master-slave-switchover/12766/3 "2025-04-16T10:57:37Z")

</div>

Hi there,

Here’s what you need to adjust (I am guessing you are on a RPM distro):

1. For the Passbolt configuration, the `fullBaseUrl` in `/etc/passbolt/passbolt.php` to use your domain name.
2. For the Nginx configuration, you need to update the `server_name` directive in `/etc/nginx/conf.d/passbolt_ssl.conf` to match your domain name.
3. Configure a simple check script for keepalived to verify Passbolt is working properly (not just that the VM is up) by checking the `/healthcheck/status` endpoint.

Hope it helps.

---

<div class="post-metadata">

**Author:** ![syx](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@syx](https://community.passbolt.com/u/syx)\
**Post date:** [April 18, 2025, 8:11am UTC](https://community.passbolt.com/t/i-want-to-implement-a-master-slave-switchover/12766/4 "2025-04-18T08:11:42Z")

</div>

Hello! Thank you very much for your prompt reply! Now I have completed all these based on your suggestions. Then I want to achieve master-slave synchronization of mariadb. However, I initially installed mariadb through the dependency installation script in the documentation. Do I need to install the database independently without using the script at the beginning? Or how should I configure it? Looking forward to your reply
