How to create your Lavalink Server
Learn how to host your Lavalink server and stream high-quality music to your Discord bot.
Introduction 🚀
- Follow the tutorial below and host your Lavalink server today it”s super simple! If you need any assistance, feel free to reach out to us through our official support channels.
- Next, you will need to create an account on Square Cloud, which can be done through the sign up page. You can use your email, to create an account.
- Finally, you need to have an active paid plan on your account. You can view our plans and purchase one according to your needs here.
Choosing the Version
Choose your desired version of Lavalink
by clicking here. We recommend selecting the latest version for the best experience.
Creating the squarecloud config file
Learn about: how to make the configuration file for Square Cloud.
The squarecloud.app file is a configuration file that will be used to configure your application; it will be used to define the name, description, version, main file, among other things.
Creating the application.yml
Create a configuration file for your Lavalink server. You can access an example file here.
port
field in your application.yml
file to: 80
.Enhancing Security
It is highly recommended to configure a secure password in the password
field of your configuration file (application.yml). We recommend using a password with at least 32 characters.
secure
option in true
to connect to your lavalink.Uploading Project to Square Cloud
Create a compressed file (.zip) containing the Lavalink.jar
and application.yml
. Then, upload your configuration file to Square Cloud.
Access the Square Cloud Dashboard and upload your project files.
Access the Square Cloud Dashboard and upload your project files.
First Step
First, you need to have the CLI installed in your environment. If you don’t have it yet, run the following command in your terminal:
If you already have it, we recommend updating it. To do this, run the following command in your terminal:
Second Step
Now, to authenticate and use other CLI commands, you will find your authorization key here by clicking on “Request API Key”. After obtaining your authorization key, run the following command:
Third Step
Finally, to deploy your application to Square Cloud using the CLI, you need to execute the following command, passing the path of your zip file:
If you continue to experience any issues, please don’t hesitate to contact our support team.