Skip to content

youtube-player does not load if run from docker image #163

@mdujava

Description

@mdujava

Describe the bug

When putting listd app running in docker is put behind nginx proxy (for getting ssl), youtube player is not loading.

https://listd.local/@user/listname/watch/ytvideo_id just shows spinner.

But when app running behind proxy directly with npm run dev or npm run preview yt-player works fine.

Screenshots

No response

Reproduction

nginx config:

server {
  listen 192.0.2.1:443 ssl;
  server_name listd.local
  ssl_certificate /etc/nginx/ssl.crt
  ssl_certificate_key /etc/nginx/ssl.key

  location / {
    proxy_buffering off;
    gzip off;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_read_timeout 90;

    proxy_pass http://127.0.0.1:3000/;
  }

Dockerfile:

FROM node:18-alpine AS builder

WORKDIR /app

COPY package*.json /app/

RUN npm ci

COPY . .

ENV NODE_BUILD=true

RUN npx prisma generate
RUN npm run build

CMD node build

FROM node:18-alpine as production
WORKDIR /app

COPY --from=builder /app/build /app/build

ENV NODE_ENV=production

EXPOSE 3000

CMD node ./build

Logs

Console shows:

Uncaught (in promise) TypeError: Me is not a function
    Immutable 21

Have you checked if this issue has already been raised?

  • I did not find any similar issues

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions