Comments (3)
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.
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.
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)
- Feedback HOT 10
- Add topic: terminal-share HOT 2
- Roundtripping command outputs HOT 3
- Server can send content before the "streaming to ..." line
- Newbie question: how to stop streaming? HOT 1
- Troubles with nano
- Doesn't work / what am I doing wrong? HOT 1
- PowerShell support HOT 1
- Doesn't work for me! HOT 4
- Blue MIT license badge in README.md (should be Apache 2.0)
- It doesent working
- Certificate for https://streamhut.io/ has expired on the 8th of december HOT 1
- Streamhut correctly streaming terminal, but not Python script output.
- Dockerfile does not build HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from streamhut.