-
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_ID
andAPP_SECURITY_OAUTH_DISCORD_CLIENT_SECRET
environment 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_TOKEN
environment variable. -
Get your Discord Server Id from Server Settings → Widget tab and place it under
APP_SECURITY_OAUTH_DISCORD_SERVER_ID
environment 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_NAME
andAPP_SECURITY_OAUTH_DISCORD_MEMBER_ROLE_NAME
keys respectively in.env.local
file.
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