Skip to content

Personalization - Account Manager

Personalization

The Account Manager has been designed to be as customizable as possible. Whether you’re deploying the Account Manager using Docker or manually, you will need to configure the environment variables before you can use it.

To make it easier to read the variables are presented in categories but you should have one resulting list with all the variables you need to set - see the examples below.

SettingDescriptionExample
SERVER_NAMEName of your server.”OpenDAoC”
SITE_TITLETitle of your site.”OpenDAoC | Account Manager”
SITE_DESCRIPTIONMeta description for your site.”OpenDAoC Account Manager allows you to link your OpenDAoC account to your Discord for easy password recovery.”
SITE_FOOTERFooter of your site.”© 2023 OpenDAoC”
LOGO_PATHPath to your logo file (relative to the public directory).”/images/mylogo.svg”
NEXTAUTH_URLURL of your site.https://example.com
NEXTAUTH_SECRETUsed for encryption, ensure it’s random. Generated with openssl rand -hex 16.”randomhexstring”

Docker Example

In your docker-compose.yml file, add the following environment section to the account-manager service:

environment:
- SERVER_NAME: OpenDAoC
- SITE_TITLE: OpenDAoC | Account Manager
- SITE_DESCRIPTION: OpenDAoC Account Manager allows you to link your OpenDAoC account to your Discord for easy password recovery.
- SITE_FOOTER: OpenDAoC Account Manager
- LOGO_PATH: /logo.svg
- THEME_FOREGROUND: 0, 0, 0
- THEME_BACKGROUND_LIGHT: 8, 38, 80
- THEME_BACKGROUND_DARK: 2, 7, 19
- TOAST_DURATION: 8
- DATABASE_HOST: your_database_host
- DATABASE_USER: your_database_user
- DATABASE_PASSWORD: your_database_password
- DATABASE_NAME: your_database_name
- MIN_PASSWORD_LENGTH: 6
- MAX_PASSWORD_LENGTH: 12
- DISCORD_CLIENT_ID: your_discord_client_id
- DISCORD_CLIENT_SECRET: your_discord_client_secret
- NEXTAUTH_URL: http://localhost:3000
- NEXTAUTH_SECRET: change-me-please-123456789012

.env.production Example

Replace the content of the .env.production file with the following and fill in the values:

SERVER_NAME=OpenDAoC
SITE_TITLE=OpenDAoC | Account Manager
SITE_DESCRIPTION=OpenDAoC Account Manager allows you to link your OpenDAoC account to your Discord for easy password recovery.
SITE_FOOTER=OpenDAoC Account Manager
LOGO_PATH=/logo.svg
THEME_FOREGROUND=0, 0, 0
THEME_BACKGROUND_LIGHT=8, 38, 80
THEME_BACKGROUND_DARK=2, 7, 19
TOAST_DURATION=8
DATABASE_HOST=your_database_host
DATABASE_USER=your_database_user
DATABASE_PASSWORD=your_database_password
DATABASE_NAME=your_database_name
MIN_PASSWORD_LENGTH=6
MAX_PASSWORD_LENGTH=12
DISCORD_CLIENT_ID=your_discord_client_id
DISCORD_CLIENT_SECRET=your_discord_client_secret
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=change-me-please-123456789012