Coder Social home page Coder Social logo

Options are not working about streamhut HOT 3 CLOSED

miguelmota avatar miguelmota commented on May 19, 2024
Options are not working

from streamhut.

Comments (3)

miguelmota avatar miguelmota commented on May 19, 2024

Hey @boppy, the node.js NPM module is deprecated in favor of the Go implementation. Check out this Dockerfile and then you should be able to pass environment variables like this:

$ docker build -t streamhut .
$ docker run -e PORT=8080 -e NET_PORT=1337 -p 8080:8080 -p 1337:1337 streamhut

from streamhut.

boppy avatar boppy commented on May 19, 2024

Oops, sorry for taking outdated approaches ;) You might want to consider changing the info on https://streamhut.io/ about npm install...

I cannot get it working with env vars. I tried (from my docker-compose.yaml):

    environment:
      SHARE-BASE-URL: https://shell.example.com/
      ShareBaseUrl: https://shell.example.com/
      shareBaseUrl: https://shell.example.com/

In your example you mention PORT and NET_PORT while streamhut help names them PORT and TCP_PORT. Do the env vars differ in name from the options to the binary? Could you provide a "matching" for those?

from streamhut.

miguelmota avatar miguelmota commented on May 19, 2024

Sorry for the confusion. The environment variables and cli options have been updated to match, so this docker-compose config should work:

    ports:
      - "8080:8080"
      - "1337:1337"
    environment:
      - PORT=8080
      - TCP_PORT=1337
      - SHARE_BASE_URL= https://shell.example.com

Closing the issue but let me know if you run into trouble.

from streamhut.

Related Issues (15)

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.