Giter VIP home page Giter VIP logo

yunshu-nas's Introduction

云舒NAS

GitHub stars GitHub forks GitHub watchers GitHub followers

Java CI with Maven GitHub issues GitHub license GitHub last commit GitHub release GitHub repo size in bytes Hits language


依赖

MySQL = 8

jre = 17

Elasticsearch(可选) = 7

Docker

镜像仓库地址:DockerHub-itning

docker run --name yunshu-nas -p 8888:8888 -e MYSQL_URL=mysql8 -e MYSQL_PORT=3306 -e MYSQL_USERNAME=root -e MYSQL_PASSWORD=root -e nas.server-url=http://127.0.0.1:8888 -d itning/yunshu-nas:latest
环境变量 用途 默认值
MYSQL_URL MySQL的地址(不包含端口号) localhost
MYSQL_PORT MySQL的端口号 3306
MYSQL_USERNAME MySQL用户名 root
MYSQL_PASSWORD MySQL密码 root
nas.ffmpeg-bin-dir ffmpeg bin 目录位置 /home/ffmpeg/bin
nas.out-dir 转码目录位置 /home/tmp
nas.aria2c-file aria2c.exe 文件位置
nas.file-data-source.music-file-dir 音乐文件目录 /home/music_yunshu
nas.file-data-source.lyric-file-dir 歌词文件目录 /home/lyric_yunshu
nas.file-data-source.url-prefix 文件数据源URL前缀 影响音乐API返回结果,例如配置:http://example.com 则返回音乐URL为:http://example.com/file?id=abc
nas.basic-auth.username basic基础认证用户名 basic基础认证用户名,默认空
nas.basic-auth.password basic基础认证密码 basic基础认证密码,默认空
nas.basic-auth.ignore-path basic基础认证忽略路径 多个路径使用英文逗号分隔,默认空
nas.server-url 服务端地址,用于前端调用后端API地址 http://127.0.0.1:8888
ENABLED_ELASTICSEARCH 是否开启Elasticsearch false
ELASTICSEARCH_URI Elasticsearch服务端URL http://localhost:9200

启动脚本(aria2c 可以不用)

nohup java -jar yunshu-nas-0.0.1-SNAPSHOT.jar --nas.ffmpeg-bin-dir=/home/shw/ffmpeg-4.2.1-amd64-static --nas.out-dir=/home/shw/a --nas.aria2c-file=/usr/local/bin/aria2c >log.log 2>&1 &
nohup aria2c --rpc-listen-port 6800 --enable-rpc --rpc-listen-all >aria2c.log 2>&1 &
属性 含义 例子
nas.ffmpeg-bin-dir Ffmpeg 所在目录 --nas.ffmpeg-bin-dir=/home/shw/ffmpeg-4.2.1-amd64-static
nas.out-dir HLS视频输出目录 --nas.out-dir=/home/shw/a
nas.aria2c-file aria2c文件全路径 --nas.aria2c-file=/usr/local/bin/aria2c
nas.music-file-dir 音乐文件目录 --nas.music-file-dir=/home/music

实现功能

截图

感谢

yunshu-nas's People

Contributors

dependabot[bot] avatar

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.