Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@ on:
branches: [ "main" ]

jobs:
lint:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Use Node.js 23
uses: actions/setup-node@v4
- uses: actions/setup-node@v4
with:
node-version: 23
node-version: '20.x'
cache: 'npm'
- run: npm ci --legacy-peer-deps
- run: npm run lint
- run: cp example-config.json config.json
- run: npm ci
- run: npx tsc
2 changes: 1 addition & 1 deletion Dockerfile → Dockerfile.nginx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ RUN apt-get update && \
mkdir -p /etc/stunnel && \
chmod 600 /etc/stunnel/stunnel.conf

CMD sh -c "stunnel /etc/stunnel/stunnel.conf && nginx -g 'daemon off;'"
CMD sh -c "stunnel /etc/stunnel/stunnel.conf && nginx -g 'daemon off;'"
13 changes: 13 additions & 0 deletions Dockerfile.streamer
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM node:20-slim

# Install chrome and ffmpeg
RUN apt-get update && apt-get install -y chromium ffmpeg

WORKDIR /app

COPY package*.json ./
RUN npm ci --only=production

COPY . .

CMD ["npm", "start"]
7 changes: 0 additions & 7 deletions babel.config.js

This file was deleted.

20 changes: 17 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,25 @@ version: '3.8'

services:
nginx:
build: .
build:
context: .
dockerfile: Dockerfile.nginx
image: tiangolo/nginx-rtmp
restart: unless-stopped
restart: always
ports:
- "1935:1935"
volumes:
- ./streamer.conf:/etc/nginx/nginx.conf:ro
- ./src:/usr/share/nginx/html
- ./src:/usr/share/nginx/html

streamer:
build:
context: .
dockerfile: Dockerfile.streamer
restart: always
network_mode: host
depends_on:
- nginx
command: npm start
environment:
- CHROME_URL=ws://chrome:4444/devtools/browser
102 changes: 0 additions & 102 deletions eslint.config.mjs

This file was deleted.

Loading