How to setup the dashboard? #371
-
I wanted to setup the bots dashboard but I got no clue how to continue. I also want to connect a custom domain to is (like https://dashboard.mydomain.xyz) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
Hello 👋Here is a step-by-step tutorial to learn how to launch the dashboard. You will need a domain and a VPS (Virtual Private Server) to host the bot (debian 10 would be the best).
Estimated time
All in all, this tutorial is complex. Don't try to go too fast and follow the steps carefully, taking the time to read everything. Good luck! 💪 Step 1 : edit the config file 🔧So, first of all, edit the dashboard part of your config file so it looks like this: dashboard: {
enabled: true,
baseURL: "http://dashboard.mydomain.xyz",
port: 8080,
failureURL: "http://dashboard.mydomain.xyz",
// read below to learn how to edit these values
logs: "",
secret: "",
expressSessionPassword: "",
},
Once your config file is updated, restart your bot. Step 2 : configure the server (VPS) 💻
This tutorial is only about setting up the dashboard and we consider that you already have your bot running on your VPS. Install Apache2 🕸️
Run the following commands on your VPS (they must be run using a root account):
If you didn't get any errors, that's great! Congratulations, your server is almost ready 🎉 You now have to create an Apache configuration for your dashboard. On your server (using FTP or SSH commands), create a file in the following directory:
Be aware, don't forget to replace a2ensite atlanta && /etc/init.d/apache2 reload And you are done. Your Apache server is configured! Step 3 : edit the domain name DNS 🌐
Example screenshot:
This can take time. Usually, DNS records are updated in 20-30 minutes but it can take 24 hours, depending on your DNS server and on your domain provider. Step 4 : configure your discord appThis is the last step of the tutorial, and it is really easy. Go to your discord developer dashboard (https://discord.dev) and edit your application settings.
It should looks like this: Congratulations, you did it 🎉Congratulations, you now have your dashboard hosted on your server! If you need more help, we are available on Discord to help you https://www.atlanta-bot.fr/discord. And if you want more tutorials you can add a star to this repository ⭐ Use an SSL certificate to support HTTPS 🔒Will be written soon |
Beta Was this translation helpful? Give feedback.
-
Uhm, is this right? If I try to connect to my Server-IP with port 8080 I'll get redirected to discord but with the error: Invalid OAuth2 redirect_uri |
Beta Was this translation helpful? Give feedback.
-
Following this I have not been able to get the dashboard up any ideas? |
Beta Was this translation helpful? Give feedback.
Hello 👋
Here is a step-by-step tutorial to learn how to launch the dashboard. You will need a domain and a VPS (Virtual Private Server) to host the bot (debian 10 would be the best).
Estimated time
All in all, this tutorial is complex. Don't try to go too fast and follow the steps carefully, taking the time to read everything. Good luck! 💪
Step 1 : edit the config file 🔧
So, first of all, edit the dashboard part of your config file so it l…