Giter Site home page Giter Site logo

idootop / feiyu-player Goto Github PK

View Code? Open in Web Editor NEW
302.0 302.0 27.0 9.58 MB

🐟 一个漂亮得不像实力派的跨平台视频播放器

Home Page: https://feiyu-player.xbox.work

License: GNU General Public License v3.0

JavaScript 15.54% TypeScript 79.65% HTML 0.51% CSS 3.64% Dockerfile 0.45% Rust 0.22%

feiyu-player's Issues

nginx 代理二级目录以及 docker 无法进入容器问题

一、Nginx 代理二级目录配置

这是 nginx 反向代理配置

    location /feiyu/ {
        proxy_pass http://127.0.0.1:4399/;  
        proxy_set_header Host $host;
        proxy_set_header Connection "upgrade";
        proxy_set_header Upgrade $http_upgrade;
        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_http_version 1.1;
    }

我在使用您的项目时遇到了关于 Nginx 代理二级目录配置方面的问题。具体来说,我想要将通过 Nginx 代理 /feiyu/ 路径的请求转发到后端服务,但不太清楚如何正确地配置 Nginx。

例如,我希望将请求 http://127.0.0.1:4399/ 代理到 https://my.domain.com/feiyu/,但是在实现过程中,似乎没有正确地处理路径,导致后端服务无法接收到预期的请求。

请问,是否能提供关于如何正确配置 Nginx 以实现这种代理的例子或指导?

二、Docker 无法进入容器的问题

这个是我的 docker compose 配置

feiyu:
    image: idootop/feiyu:latest
    container_name: feiyu
    restart: always
    ports:
      - "4399:3000"
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /etc/timezone:/etc/timezone:ro

我在使用 Docker 时也遇到一个问题。由于所使用的 Docker 镜像非常精简,容器内没有 bash、sh 或其他常用命令可用,使得无法通过 docker exec 命令进入容器进行调试和操作。
对此,有没有推荐的解决方案?比如能否提供一些建议,帮助我在这种情况下进入容器,或是如何在构建镜像时确保可以访问容器?

期待您的回复!

请教问题

我看您的项目采用的是 xgplayer,但我在实际使用xgplayer的兼容性不如 dplayer 这种基于 hls.js 库的。不知道作者是怎么解决的,
同时我看您的项目只用了 xgplayer 和 xgplayer-hls,是对 mpd flv 这种格式不做适配吗

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.