Backend for Remote Diffusion
Remote Diffusion backend server. This server manages multiple connections. If you need just a one-click tunnel to your local Stable Diffusion Web UI check out the Client.
Tested on Ubuntu 22.04
Update apt
sudo apt update
sudo apt upgrade
Install go
sudo apt install golang-go
Install Nginx
sudo apt install nginx
Install PostgreSQL
sudo apt install postgresql
sudo systemctl start postgresql
sudo systemctl status postgresql
Download the backend
git clone https://github.com/HashedViking/remote-diffusion-server
Build
cd remote-diffusion-server
go build remote-diffusion-server
Run
./remote-diffusion-server
Setup Nginx reloading script
sudo chmod -R 755 reload_nginx.sh
Run the binary as background job and collect logs.
nohup ./remote-diffusion-server > output.log &
Find the running process
lsof -i :8080 | grep remote
- Add Nginx, Certbot, PostgreSQL configuration steps.
- Explain in-depth how the system works.
- Dockerize.
- Add Monitoring.
- Stream SDWebUI console output.
- PostgreSQL - Database
- Gin - Server Framework
- Frp - Tunnel
- Nginx - Server Reverse Proxy
- @hashedviking - Idea & Initial work