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_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”
Setting Description Example THEME_FOREGROUNDForeground color in RGB format. ”255,255,255” THEME_BACKGROUND_LIGHTLight background color in RGB format for the top of the gradient. ”200,200,200” THEME_BACKGROUND_DARKDark background color in RGB format for the bottom of the gradient. ”50,50,50”
Setting Description Example TOAST_DURATIONDuration of the toast notification in seconds. ”5”
Setting Description Example DATABASE_HOSTDatabase host. ”localhost” DATABASE_USERDatabase user. ”dbuser” DATABASE_PASSWORDDatabase password. ”password123” DATABASE_NAMEDatabase name. ”mydatabase”
Setting Description Example DISCORD_CLIENT_IDDiscord client ID. ”1234567890” DISCORD_CLIENT_SECRETDiscord 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