-
Notifications
You must be signed in to change notification settings - Fork 57
Open
Description
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
Labels
No labels