Coder Social home page Coder Social logo

sub's Introduction

Feature

Fork from stilleshan/dockerfiles Add some different fetures

  • Change the subconverter to support the Vless and Hysteria
  • Add the environment SHORT_URL to define the SHORT_URL

Use the below command to pull the image

docker pull musk1024/sub:latest

sub

GitHub stilleshan/dockerfiles
Docker stilleshan/sub

docker image support for X86 and ARM

简介

基于 subweb 和 subconverter 前后端加上 myurls 短链接整合容器,支持自定义配置.

部署

注意,本项目必须搭配域名反代使用.

docker

已更新支持短链接,如需要更换短链接或自己部署,请使用以下 docker compose 部署.

docker run -d --name sub --restart always \
  -p 18080:80 \
  -v /PATH/sub/conf:/usr/share/nginx/html/conf \
  stilleshan/sub

修改挂载路径,根据需求自行修改conf/config.js中的相关配置.

推荐使用nginx配置域名反向代理至18080端口.

subconverter同样支持挂载外部配置文件,参考容器内部路径:/base/snippets/rulesets.txt.

docker compose

docker compose 已包含 myurl 短链接:

  • 如无需部署 myurls 服务,可删除12-32行,将默认使用本站短链接.也可以修改conf/config.js来使用其他myurls短链接服务.
  • 如需自行部署 myurls 服务,需修改docker-compose.yml中的MYURLS_DOMAIN,以及conf/config.js中的shortUrl,注意请严格按照示例格式填写.
  • myurls 服务需要单独配置 nginx 反代以及证书,可以参考myurls.conf配置.注意需要修改域名,证书路径,日志路径. 下载 docker-compose.yml 执行以下命令启动:
docker-compose up -d

参考

sub's People

Contributors

musk1024 avatar

Stargazers

 avatar  avatar

Watchers

 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.