#Help configuring dashboard reverse proxy

1 messages · Page 1 of 1 (latest)

random helm
#

I'm a bit lost here. I'm trying to setup the bot with the dashboard via docker. I have my own server with a domain name and a all my containers run behind Ngins Reverse Proxy. It took me a while to find out that I also have to configure a separate dashboard settings.json.
But now that I found the sample file I am confused.
The documentation for the bot does not specify any secret_key. Is this something I choose and place in both the dashboard and the bot settings file?
In my docker-compose file I have uncommented the dashboard section and filled it in. Here the trouble/confusion begins. All the containers that I run on the server are part of the same bridged network that the reverse proxy runs on.
So I did the same for the services here(which all start, except the dashboard)
I removed the web network since I read in another thread here that I don't need it.
This is the dahsboard section in the compose yml file

 vocard-dashboard:
        container_name: vocard-dashboard
        image: ghcr.io/chocomeow/vocard-dashboard:latest
        restart: unless-stopped
        # If you want to build the image from the Dockerfile, uncomment the "build" lines and comment the "image" line.
        # build:
        #     context: ./dashboard
        #     dockerfile: ./Dockerfile
        volumes:
            - ./dashboard/settings.json:/app/settings.json
        ports:
            - 8230:8000
        networks:
            proxy:
                ipv4_address: 172.20.0.99
            #web: {}

Reading the documentation for the dashboard it seems I have to post a callback URL for discord OAUTH. I'm confused as to what should I fill in for the host and the port in both settings.json files.
Initially I was thinking of keeping 0.0.0.0 or vocard-dashboard, or the assigned static ip for the container but I don't know.
Since I access all services via https should the port be 443? as in
host: vocard.mydomain.com
port: 443
redirect_url: https://vocard.mydomain.com/callback

#

So my main question is how do I configure both settings.json files, what do I fill in for host / port / redirect_url and do both files need to contain the exact same information(for these 3 parameters and the secret key ?

It's late, I'm tired and may not be coherent, but I've been battling with this for a while now

oak comet
# random helm So my main question is how do I configure both settings.json files, what do I fi...

Hello. You are correct about many things, but lets clear this up:
for secret_key you can choose any string - it's just a "password". Now for the docker compose part. the dashboard service has to be in the same network as the bot and reverse proxy. I see that you've mentioned that all of your containers run in one network with reverse proxy. As long as the bot and reverse proxy can access the dashboard - it's fine, but note that it's not that safe to have all containers in one network. Anyway, as for your dashboard settings.json configuration. Leave 0.0.0.0 since it allows your reverse proxy to connect to the dashboard. Port is the internal port to use. It's the 8000 in
ports: - 8230:8000
For the redirect_url you can use https://vocard.mydomain.com/callback , but don't forget to specify that url in discord developer portal too - they must match. One last thing - in the docs, there is a grey circle with a +, by pressing on it you can look at some hints

random helm
#

What about the settings.json from the bot? I assume they should match, but might be wrong.

oak comet
random helm
#

I got it working, but the bot is throwing errors, and still plays sometimes. I'd be happy to post them but I'm not at the PC right now. I feel I've set some things wrong, for example clicking leave in the discord bot interface I get an error, something regarding interactions in the bot log

oak comet
#

Hmm... Yeah, send the logs and then we see what's up

random helm
#

But the song appears to start playing anyway

#

This happens if I click on pause the song does pause, but the logs show an error. Also, the Discord interface shows an error, but I didn't realise they dissapear after some seconds so couldn't catch it

oak comet
random helm
oak comet
#

you should set youtube source to false since you have youtube-plugin enabled

random helm
oak comet
random helm
# oak comet DJ role is assigned via /settings dj

Cool, thank you. The bot still throws those errors, but appears to be working fine. Now, for the real challenge, getting it to play music from my navidrome instance, via a UI of sorts(actually the dashboard seems amazing for this, but I doubt it was designed for it). I suppose I'll have to speak with a developer for this.

oak comet
oak comet
#

You can also ask for help there

#

But only for lavalink issues though