Skip to content

xconnio/deskconn-account-service

Repository files navigation

Deskconn Account Service

Deskconn Account Service manages user accounts, devices, and desktop information.

Getting Started

Before starting this service, make sure the Deskconn Router is running.

Setup Instructions

  1. Install dependencies:
make setup
  1. Configure environment variables:

Create or edit the .env file with appropriate values:

ACCOUNT_SERVICE_DB_USER=account-service
ACCOUNT_SERVICE_DB_PASSWORD=account-service-password
ROUTER_DB_USER=router
ROUTER_DB_PASSWORD=router-password
DESKCONN_POSTGRES_HOST=localhost
DESKCONN_DATABASE_URL=postgresql+asyncpg://${ACCOUNT_SERVICE_DB_USER}:${ACCOUNT_SERVICE_DB_PASSWORD}@${DESKCONN_POSTGRES_HOST}:5432/deskconn_account_service
DESKCONN_ACCOUNT_AUTHID=deskconn-account-service
DESKCONN_ACCOUNT_PRIVATE_KEY=db3f6235591a98b704f87f46f66d74645864479f32446a32d95c4826a6791b0a
RESEND_API_KEY=your-resend-api-key
COTURN_SECRET=your-coturn-secret
ROUTER_URL=ws://localhost:8080/ws

Debug mode: Set X_DEBUG=true to skip email sending and print OTPs to stdout instead. When enabled, RESEND_API_KEY is not required. Useful for local development.

  1. Start Postgres and apply migrations:
make db

Running the Service

make run

Running with Docker

Before running with Docker, make sure Deskconn Router is already running via its own docker-compose.yml.

Set these values in your .env for Docker:

# Use the container name for postgres (same docker-compose network)
DESKCONN_POSTGRES_HOST=deskconn-account-service-postgres

# Use host.docker.internal to reach the router running on the host
ROUTER_URL=ws://host.docker.internal:8080/ws

Then start the service:

make run-docker

About

Deskconn accounts backend

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages