-
Create new application or select existing one.
-
Go to OAuth2 -> General tab.
-
Copy Client Id and Client Secret and place them under
APP_SECURITY_OAUTH_DISCORD_CLIENT_IDandAPP_SECURITY_OAUTH_DISCORD_CLIENT_SECRETenvironment variables respectively. -
Add a new redirect to
https://<your domain>/security/connect/discord/check.
-
-
Go to Bot tab. Copy bot Token and place it under
APP_SECURITY_OAUTH_DISCORD_BOT_TOKENenvironment variable. -
Get your Discord Server Id from Server Settings → Widget tab and place it under
APP_SECURITY_OAUTH_DISCORD_SERVER_IDenvironment variable. -
Go to OAuth2 -> URL Generator tab. Select bot scope and copy generated URL. Use it to add bot to your server.
-
Enter roles names that user must have assigned to be considered a recruit or a member of the unit and place them under
APP_SECURITY_OAUTH_DISCORD_RECRUIT_ROLE_NAMEandAPP_SECURITY_OAUTH_DISCORD_MEMBER_ROLE_NAMEkeys respectively in.env.localfile.
Port: 9003
IDE key: armaforces-web
Path mappings: /www/app
Xdebug can be turned on/off from php container using following commands (available for dev environment, disabled by default):
xon
xoff