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