Python generator tool for installing LiveKit on a server #49
LordPinkFloyd
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I recently installed the LiveKit AVClient on my Foundry instance and it works perfectly! The documentation on the wiki to get the server side set up was a little tricky, though. It seemed very roundabout to use a docker container to generate your configuration files, only to reinstall docker and wrap the docker compose commands in a daemon to bring the LiveKit server up and down. I ended up streamlining the installation process as I set up my server, and would like to pass on my tools so others can do the same.
I wrote a python script that replaces the docker container that generates the configuration files. The script generates the API Key and API Secret the exact same way that the docker container does, but my approach is more light-weight and removes any user prompts that aren't relevant to our specific process. Writing the script in python allows it to be run on any platform, and I tweaked the way the docker-compose file was being generated so that it can be run on any platform, not just Linux. I also added the ability to generate nginx and apache configuration files so that setting up the web proxies is even easier. With my script, all the user has to do is run the python program, answer the prompts, set up the web proxies and firewall configurations, and run
docker compose up --detach
in the generated directory to spin up their new LiveKit instance.I've attached the python program below. It's hosted on a another git server, but I feel it logically belongs with this project. If its accepted, I'll update the wiki to reflect the faster setup process.
livekit.zip
Beta Was this translation helpful? Give feedback.
All reactions