ayastreb / bandwidth-hero-proxy

:zap: Proxy that compresses images to low-resolution
https://bandwidth-hero.com/
MIT License
189 stars 160 forks source link

Confirmed: can host with Dokku #14

Open ttpro1995 opened 6 years ago

ttpro1995 commented 6 years ago

You can use Dokku on your own server to host bandwidth-hero-proxy. Worked as Heroku https://github.com/dokku/dokku

Just create an app on Dokku

dokku apps:create bandwidth-hero-proxy # on dokku server

Then from your local PC, push the code to dokku

# on local laptop/pc
git add remote dokku dokku@your-server-ip:bandwidth-hero-proxy
git push dokku master 

Then check for port with

# on dokku server
dokku proxy:ports bandwidth-hero-proxy

your compression server is hosted at

http://your-server-ip:your-port/

bkvamme commented 5 years ago

Little typo in the comment above, which had me (inexperienced gitter) stumble around for a while.

The correct command is: git remote add dokku dokku@your-server-ip:bandwidth-hero-proxy not git add remote dokku dokku@your-server-ip:bandwidth-hero-proxy

Besides that, everything works with dokku.

swordgreen commented 5 years ago

Before you run git push dokku master

command, you should run the command: dokku git:initialize bandwidth-hero-proxy

on the server-side. Otherwise, the git push may fail.

lucius100 commented 4 years ago

I am gonna go crazy tinkering this for 6 hours, lol. Can somebody help me ? For someone who never used linux can't set this at all. Why dokku need to push the code from local pc ? Is it possible to install all of this via dokku server ?

I tried to install to vps directly without dokku, can work on port 8080, but can't work on nginx proxy forwarding, getting headache.

ttpro1995 commented 4 years ago

You can push code from server that host Dokku to the git address in Dokku. Dokku work like heroku. It build app from .git

So you must push code.

You can run these command on ssh-terminal of the server that install Dokku too.

git add remote dokku dokku@your-server-ip:bandwidth-hero-proxy
git push dokku master 
lucius100 commented 4 years ago

You can push code from server that host Dokku to the git address in Dokku. Dokku work like heroku. It build app from .git

So you must push code.

You can run these command on ssh-terminal of the server that install Dokku too.

git add remote dokku dokku@your-server-ip:bandwidth-hero-proxy
git push dokku master 

I got it working now without dokku. Apache and nginx failed me, I used nginx proxy manager to redirect it to my subdomain and add the https this thing won't work without https.

ttpro1995 commented 4 years ago

It can work without Dokku but Dokku save your time with Apache and Nginx :v