4 Commits
7 changed files with 20 additions and 5 deletions
+9
View File
@@ -2,6 +2,14 @@
All notable changes to this project will be documented in this file.
## [1.0.3] - 2025-09-17
### Fixed
- Server now binds to `0.0.0.0` by default so Docker port publishing works correctly from the host. Added `BIND_HOST=0.0.0.0` in Dockerfile and compose.
### Notes
- If you were seeing `ERR_CONNECTION_REFUSED` on `http://localhost:8787`, pull the latest image or rebuild, then re-run with `-p 8787:8787`.
## [1.0.2] - 2025-09-17
### Fixed
@@ -37,6 +45,7 @@ All notable changes to this project will be documented in this file.
## [1.0.0] - 2025-09-16
- Initial stable release.
[1.0.3]: https://github.com/Inside4ndroid/TMDB-Embed-API/compare/v1.0.2...v1.0.3
[1.0.2]: https://github.com/Inside4ndroid/TMDB-Embed-API/compare/v1.0.1...v1.0.2
[1.0.1]: https://github.com/Inside4ndroid/TMDB-Embed-API/compare/v1.0.0...v1.0.1
+1
View File
@@ -22,6 +22,7 @@ ARG VERSION=dev
WORKDIR /app
ENV NODE_ENV=production \
API_PORT=8787 \
BIND_HOST=0.0.0.0 \
APP_VERSION=${VERSION}
# Create non-root user
+1 -1
View File
@@ -6,7 +6,7 @@
<img src="https://img.shields.io/badge/Node.js-18%2B-brightgreen?style=flat" />
<img src="https://img.shields.io/badge/Status-Active-success?style=flat" />
<img src="https://img.shields.io/badge/License-MIT-blue?style=flat" />
<img src="https://img.shields.io/badge/Version-1.0.2-informational?style=flat" />
<img src="https://img.shields.io/badge/Version-1.0.3-informational?style=flat" />
<img src="https://img.shields.io/docker/pulls/inside4ndroid/tmdb-embed-api?label=Docker%20Pulls&style=flat" />
</p>
+6 -2
View File
@@ -374,8 +374,12 @@ app.get('/api/streams/:provider/:type/:tmdbId', async (req,res) => {
});
const PORT = config.port;
const server = app.listen(PORT, () => {
console.log(`TMDB Embed REST API listening on http://localhost:${PORT}`);
const HOST = process.env.BIND_HOST || '0.0.0.0';
const server = app.listen(PORT, HOST, () => {
console.log(`TMDB Embed REST API listening on http://${HOST}:${PORT}`);
if (HOST !== 'localhost') {
console.log(`Local access (if running on your machine): http://localhost:${PORT}`);
}
console.log('Endpoints:');
console.log(' GET /api/health');
console.log(' GET /api/metrics');
+1
View File
@@ -9,6 +9,7 @@ services:
# Alternative: supply JSON array
# - TMDB_API_KEYS=["key1","key2"]
- API_PORT=8787
- BIND_HOST=0.0.0.0
# FebBox cookies (comma separated) if you want Showbox immediately functional
- FEBBOX_COOKIES=${FEBBOX_COOKIES:-}
ports:
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "tmdb-embed-api",
"version": "1.0.2",
"version": "1.0.3",
"description": "Standalone streaming embed source aggregation API (TMDB ID in, streams out)",
"main": "apiServer.js",
"scripts": {
+1 -1
View File
@@ -16,4 +16,4 @@
"disable4khdhubUrlValidation": false,
"excludeCodecsRaw": "{\"excludeDV\":false,\"excludeHDR\":false}",
"minQualitiesRaw": "all"
}
}