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.
Setting Description Example SERVER_NAME
Name of your server. ”OpenDAoC” SITE_TITLE
Title of your site. ”OpenDAoC | Account Manager” SITE_DESCRIPTION
Meta description for your site. ”OpenDAoC Account Manager allows you to link your OpenDAoC account to your Discord for easy password recovery.” SITE_FOOTER
Footer of your site. ”© 2023 OpenDAoC” LOGO_PATH
Path to your logo file (relative to the public directory). ”/images/mylogo.svg” NEXTAUTH_URL
URL of your site. ”https://example.com ” NEXTAUTH_SECRET
Used for encryption, ensure it’s random. Generated with openssl rand -hex 16
. ”randomhexstring”
Setting Description Example THEME_FOREGROUND
Foreground color in RGB format. ”255,255,255” THEME_BACKGROUND_LIGHT
Light background color in RGB format for the top of the gradient. ”200,200,200” THEME_BACKGROUND_DARK
Dark background color in RGB format for the bottom of the gradient. ”50,50,50”
Setting Description Example TOAST_DURATION
Duration of the toast notification in seconds. ”5”
Setting Description Example DATABASE_HOST
Database host. ”localhost” DATABASE_USER
Database user. ”dbuser” DATABASE_PASSWORD
Database password. ”password123” DATABASE_NAME
Database name. ”mydatabase”
Setting Description Example DISCORD_CLIENT_ID
Discord client ID. ”1234567890” DISCORD_CLIENT_SECRET
Discord client secret. ”abcdef1234”
Docker Example
In your docker-compose.yml
file, add the following environment
section to the account-manager
service:
- 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
- THEME_FOREGROUND : 0, 0, 0
- THEME_BACKGROUND_LIGHT : 8, 38, 80
- THEME_BACKGROUND_DARK : 2, 7, 19
- DATABASE_HOST : your_database_host
- DATABASE_USER : your_database_user
- DATABASE_PASSWORD : your_database_password
- DATABASE_NAME : your_database_name
- 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:
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
THEME_BACKGROUND_LIGHT=8, 38, 80
THEME_BACKGROUND_DARK=2, 7, 19
DATABASE_HOST=your_database_host
DATABASE_USER=your_database_user
DATABASE_PASSWORD=your_database_password
DATABASE_NAME=your_database_name
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