/remote-diffusion-server

Primary LanguageHTMLApache License 2.0Apache-2.0

Project logo

Remote Diffusion Server

Status GitHub License Linux


Backend for Remote Diffusion

📖 Table of Contents

🧐 About

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.

🏁 Getting Started

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

🚀 Deployment

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

📝 TODO

  • Add Nginx, Certbot, PostgreSQL configuration steps.
  • Explain in-depth how the system works.
  • Dockerize.
  • Add Monitoring.
  • Stream SDWebUI console output.

⛏️ Built Using

✍️ Authors