#Pterodactyl
1 messages · Page 1 of 1 (latest)
- Create a container with a Python environment.
- Download the Vocard source code.
- Upload the Vocard source code to the container you just created.
- Start the container.
These are the steps to install Vocard on your Pterodactyl. Please ensure you have the necessary permissions and system requirements before proceeding.
I guess I should create 2 nodes for 2 different servers (Music Bot and Dashboard) but I'm a bit confused about the ports I need to assign to those nodes.
i think you need 3 containers if you also self-hosting lavalink server
for dashboard is a bit difficult in Pterodactyl because Pterodactyl is not designed for website hosting
Thank you! You're right, I need 3 nodes. Where can I find the ports I need to assign to those 3 nodes though?
Why is it difficult for the dashboard ? Because you have to use nginx to redirect https to the website container or for a different reason ?
you mean how to assign ports for the container in pterodactyl?
i use ptero for webhost xd
u can have 1 node, for all
and yes, since your panel page already takes ports 8080 and 443, you won't be able to use those ports for your dashboard. Therefore, you will need to use Nginx to redirect dashboard requests to another domain or port.
and random ports
Therefore, you will need to use Nginx to redirect dashboard requests to another domain or port.
or cloudflared
Yes you can, but it's not designed for web hosting
I mean for each container I need an allocation, and to create this allocation I need to provide ports
webhost egg
use ip addr : 0.0.0.0
ip alias public node ip
ports what port u need
u can do
4000-4999
Oh I see, nice
after , if u have 2 nodes
u can use 2 node for proxy traffic
129.124.30.7:4000 -> 202.74.23.5:80 or 443
Is this possible with one node for all ?
For the bot, you require an ipc_server port. You have the flexibility to assign any port of your choice, although the default is set to 5000.
yes
with cloudflared
register
and back
before use cfred , u need link ur domain in cloudflare
If your dashboard and bot are on the same node, I recommend using the local IP address 127.0.0.1 for the bot container.
not work
dockers isolated
yes, but you can allow it in firewall
haven't tried it haha
Pterodactyl is an open-source game server management panel built with PHP, React, and Go. Designed with security in mind, Pterodactyl runs all game servers in isolated Docker containers while exposing a beautiful and intuitive UI to end users.
did not know
Interesting
yes and you will able to access another container with 172.18.0.1:<PORT>
after you link your domain to cf, you go to one.dash, log into your account and click here
after that you need to create a tunnel
'copy this' - and run in your machine
if everything went well
then your car should appear here
I think it's clear here
url: u can use public ip, and local with ports
Thank you very much, I'll try it later, time to sleep a bit
Thank you, I managed to have the Lavalink and the Vocard bot working. However now I'm struggling to have the web app working on Pterodactyl. The Vocard server uses 127.0.0.1:4000 on pterodactyl and I put 0.0.0.0:30127 for the Web server. I also did ufw allow in on pterodactyl0 to 172.18.0.1 port 30127 proto tcp for both UDP and TCP. When I go on mydomain.com:30127 I have this error {"client_id": ["Value \"None\" is not snowflake."]}
On the terminal I have this
Now both of your applications are using same port
This one ?
Yes but you should pass the value into the IPCClient instead of changing the code in the class
Yea you should do in this way
ipc_client = IPCClient(host="172.18.0.1", port=8000, secret_key=app.secret_key, callback=message_handler)
socketio.run is for the web application not for the connected the ipc server
Yes replaced it with your ipc server port
I'll try that. Also I still have this error on the Vocard script
Is your dashboard also using port 30127?
You mean the web dashboard or pterodactyl ?
Vocard dashboard
Yes I use this adress for my server 0.0.0.0:30127
Yes you are not allowed to do this
Oh
I'll start again from scratch I think
When I create my pterodactyl server, which adress should I choose ?
My Vocard server is running 127.0.0.1:4000
You can select any port that is not used
With 0.0.0.0?
Vocard server means the bot or dashboard?
The bot
I'm creating again the server for the dashboard
wondering what I should use as server IP
as you said I'm not allowed to use 0.0.0.0:30127 for the dashboard server
127.0.0.1
Is there an easy port I can use like 5000 or 8000?
No you are allowed but use 127.0.0.1 will be more secured
I see
Actually it doesn't matter all the ports are the same
Okay I'll stay with 30127 then
Yea then you have to change the port in the dashboard
Because you can't use the same port on different server
Okay so I have the dashboard server running in 127.0.0.1:30127. In webapp.py I should modify ipc_client = IPCClient(host="172.18.0.1", port=30127, secret_key=app.secret_key, callback=message_handler)```` , socketio.run(app, host="127.0.0.1", port=5000) to socketio.run(app, host="127.0.0.1", port=30127, ```REDIRECT_URI = 'http://127.0.0.1:5000/callback' to REDIRECT_URI = 'http://mydomain.com:30127/callback'```. And in settings.json there is only ``` "ipc_server": { "host": "172.18.0.1", "port": 30127, "enable": true }, to change right ?
For the dashboard you have to run on 0.0.0.0 instead of 127.0.0.1
Otherwise you won't able to access the page from another pc
I thought I should use 127.0.0.1 for the dashboard server ?
Nah, because the dashboard must be publicly accessible
If it is set to 127.0.0.1, the dashboard can only be accessed on the same computer as the hosting server
I see, so I now have this IP for my dashboard server. So I should changesocketio.run(app, host="127.0.0.1", port=5000) to socketio.run(app, host="0.0.0.0", port=30127 right ?
Oh, if I use 30127 for the server in Pterodactyl, I should use 30128 for the dashboard for example ?
Yea
Have you restarted the dashboard?
Not yet, I'm changing to 30128 in all config files, I'll tell you
And try to change 172.18.0.1 to 0.0.0.0
I did all of this I now have access to the dashboard, but it doesn't update itself, it's empty even when I play some music
bro
also use 0.0.0.0
I'll try that
I still have access to the dashboard but nothing in it :/ Maybe this is related with my Vocard server settings.json ?
change all host 172.18.0.1 -> 0.0.0.0
docker can bind 172
I did that, I don't have the bind adress error anymore, the dashboard is still empty and I have those errors now
send ur web folder
u need go to web/ipc
and change all 172 to 0.0.0.0 and port 30128
no bro
screen
you mean this ?
yes
u need dublicate your bot
full archive
and paste in web
after u need change in ipc all ports ips to 0.0.0.0:30128
So I should put all of this in web folder ??
yes
In the dashboard docker server or the bot server ?
as I have 3 servers (Lavalink, Bot and Dashboard)
Okay i'll try that
don't forget change in web/ipc/
all files who have connect to ipc
So I extract all the bot content here right ? It will also contain Web folder and I'm already in Web folder
remove all files , no arc
unpack arc
go to startup
and change python file
to web/wepapp.py
and change all ips:ports in /ipc
Okay so I delete all content of my dashboard server, and extract the bot arc in thr root folder right ?
ye
change all to 0.0.0.0
no 127
only 0.0.0.0
I've got the same errors with 0.0.0.0 :/
yeah both
hm
this works for me
u can change ipc connect in web local to public
Choco do not recommend using it, but you can try
in wich file is ipc connect ?
this
I don't find anything named ipc connect or local in those files
in this
I'm not sure what should I change to public here?
yes
Like that? Seems weird to me
So I need to find a public ipc server ?
I don't get it
I'm new with all this sorry :/
Oh I should put my vps ip?
I still have the same result
Yeah thank you a lot bro, I guess no dashboard for me x)
Could it be due to the ports in pterodactyl ? Like I have one server running on port 4000 wich is the bot, and one server running in 30127 and 30128 for the dashboard
oh bro
send vocard network
yes
I thought the server was hosted on the dashboard
network port
that's how it should be
your bot displays the ipc server at 30128
and the panel is trying to connect to a non-existent ipc
Now everything should work locally
Sure
Thank you so much guys for your patience and your help @clear nexus @elder viper 
Do you know if there is a way to make the panel https easily ? If not don't bother
No rush don't worry if she is busy, you both already helped me so much 
you can either use cloudflare or create a config in nginx, to let nginx handle requests for the dashboard
Thanks I'll try to do it with cloudflare as I'm not sure I can run nginx easily within pterodactyl. Will the SSL certificate generated by Cloudflare work with the port at the end server.example.com:30127 though?
yea if you are not familiar with nginx then you should go for cloudflare