Git Product home page Git Product logo

taichunmin / docker-serveo-server Goto Github PK

View Code? Open in Web Editor NEW
66.0 6.0 17.0 15 KB

https://serveo.net is an alternative for ngrok. taichunmin/serveo-server can let you host your own serveo. And taichunmin/serveo can let you secure URL to your localhost server through any NAT or firewall in Docker.

Home Page: https://hub.docker.com/r/taichunmin/serveo-server

License: MIT License

Dockerfile 70.99% Shell 29.01%
serveo server self-hosted docker docker-compose ngrok alpine

docker-serveo-server's Introduction

GitHub stars GitHub license Docker Stars Docker Pulls Docker Cloud Automated build Docker Cloud Build Status

docker for serveo.net server

https://serveo.net is an alternative for ngrok. taichunmin/serveo-server can let you host your own serveo. And taichunmin/serveo can let you secure URL to your localhost server through any NAT or firewall in Docker.

Set up credentials

You should provide a https credentials or generate one by Let's Encrypt.

Usage

  1. Copy the example file
    $ cp docker-compose.example.yml docker-compose.yml
  2. You should edit docker-compose.yml to change the domain argument.
  3. use docker-compose up -d to start container.
  4. you can use docker-compose logs to confirm the service start successfully.

Demo

$ git clone https://github.com/taichunmin/docker-serveo-server.git

$ cd docker-serveo-server

# You need to set up credentials first, please see dns-cloudflare/README.md

$ cp docker-compose.example.yml docker-compose.yml

$ nano docker-compose.yml # change domain

$ sudo docker-compose up -d

$ sudo docker-compose logs serveo
# Attaching to docker-serveo-server_serveo_1
# serveo_1  | 2019/03/16 13:11:42 Listening on :2222...

$ ssh -R test.example.com:443:localhost:80 example.com -p 2222 # on another computer
# Forwarding HTTP traffic from https://test.example.com
# Press g to start a GUI session and ctrl-c to quit.

LICENSE

MIT License

docker-serveo-server's People

Contributors

taichunmin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

docker-serveo-server's Issues

Issue with Port Forwarding

I have done all instructions and when I try this command on windows

ssh -p 443 -R 0:localhost:3389 mysitename.com

I can not connect to the windows machine on the specified port

Upon checking the logs on the server, it appears that the port forwarding is utilizing a different port than the one specified (3389). Instead, it is using port 61660, as by the log entry below:

2024/04/07 16:28:26 Listening on :22...
2024/04/07 16:29:02 Handshaking with 84.185.44.208
2024/04/07 16:29:02 New SSH connection from 84.185.44.208 (SSH-2.0-OpenSSH_for_Windows_7.7)
2024/04/07 16:29:02 Port forwarding request for localhost:0
2024/04/07 16:29:02 Listening on [::]:43615
2024/04/07 16:29:02 TCP forwarding started: :43615 -> 84.185.44.208:61660

serveo_1 | 2021/04/09 16:42:38 http: proxy error: No tunnel for 34.x.x.x

I am using a google cloud server as my serveo-server, I followed the instructions, set up Cloudflare DNS, and everything worked fine, however, My app running on my local machine on localhost:8000 when I use
ssh -R test.abc.com:443:localhost:8000 abc.com -p 2222 from my local machine it doesn't do anything, and halts.

this the output of docker-compose logs from the server:
Attaching to docker-serveo-server_serveo_1
serveo_1 | 2021/04/09 16:39:06 Listening on :22...
serveo_1 | 2021/04/09 16:42:38 http: proxy error: No tunnel for 34.x.x.x

Please, Can anyone tell me what's wrong?
Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.