This guide explains how to configure TrustyNotes for self-hosting
- Configure Default Sync Server: Edit
src/config/sync.tsto set your default sync server - Start Your Sync Server: Use the provided server in the
server/directory - Build and Deploy: Build the frontend and deploy to your chosen platform
Edit src/config/sync.ts to configure your default sync servers:
export const DEFAULT_SYNC_SERVERS: SyncServerConfig[] = [
{
label: 'My Self-Hosted Server',
value: 'https://sync.mydomain.com',
isDefault: true
},
{
label: 'Local Development',
value: 'http://localhost:3222',
isDefault: false
},
];- Navigate to the
server/directory - Create a
.envfile with your MongoDB credentials:MONGO_USERNAME=your_username MONGO_PASSWORD=your_password - Start the server:
docker compose up --build -d
Update android/app/build.gradle if you want to change the default server for Android builds:
resValue "string", "server_url", "https://your-sync-server.com"