change listening address/interface
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Domain
- networking
Research direction
Start with application.yml and the server startup/configuration path that consumes its environments.production.server settings. Reproduce with 127.0.0.1 and port 7373, then verify with netstat or sockstat that Streama binds only to the loopback interface rather than all available addresses.
Written by the indexing model from the issue text.
Description
Issue description
I came across a problem I couldn't figure out yet (without modifying the source code). Is it not possible to change the listening address or interface of the application? I dislike the idea that Streama is accessible without a proxy from literally any available IP address. My goal is to lock down Streama to 127.0.0.1 and proxy all requests with my web server.
I already managed to change the default port as 8080 is already reserved on my server for something else.
This is my application.yml
environments:
production:
server:
hostname: 127.0.0.1
host: 127.0.0.1
port: 7373
Except the port the other options are completely ignored.
Steps to Reproduce
- Create this
application.ymlfile. - Start Streama
- Look for open ports with either
sockstatornetstat.
Expected Behavior
That Strema doesn't take over all interfaces and is accessible from the outside via IP address. Using a proxy is preferred behavior.
Actual Behavior
Streama listens on everything where it can get its greedy hands on.
Environment Information
- Operating System: FreeBSD 11.2-RELEASE
- Streama version: 1.6.0-RC7
- Custom streama build, describe customizations or provide link to fork (If Applicable): No
- Container Version (If Applicable): No
EDIT!: At the moment I blocked the port using pf (firewall) as workaround. I really don't want any open ports other than the web server and SSH.
- Dominant language
- JavaScript
- Stars
- 9.8k
- Forks
- 978
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from streamaserver/streama
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
streamaserver/streama#1164 ·
-
API calls Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
streamaserver/streama#1162 · 10 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
streamaserver/streama#1161 ·
-
Java issue Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
streamaserver/streama#1160 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
streamaserver/streama#1157 · 1 comment ·
All issues in streamaserver/streama
Similar issues
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
optimization optimization:agents-md-curator
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
githubnext/gh-aw-cao#13143 ·
-
status: needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100