Giter Site home page Giter Site logo

zhangzbxyz / subweb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stilleshan/subweb

0.0 0.0 0.0 1.52 MB

subweb 是基于 subconverter 订阅转换的前端项目,方便用户快速生成各平台的订阅链接.

Home Page: https://sub.ops.ci

License: GNU General Public License v3.0

Shell 0.52% JavaScript 3.02% CSS 45.63% HTML 0.49% Vue 10.54% Dockerfile 0.19% SCSS 39.61%

subweb's Introduction

subweb

简介

subweb 是基于 subconverter 订阅转换的前端项目,方便用户快速生成各平台的订阅链接.

subweb 是我个人入门 vuejs 学习时简单做的一个案例,使用还算方便,开源出来,欢迎各路大佬贡献维护.

GitHub stilleshan/subweb
Docker stilleshan/subweb

docker image support for X86 and ARM

示例

https://sub.ops.ci
https://subweb-demo.vercel.app/
前后端示例,可以直接使用.

部署

docker 本地版

适用于本机快速部署使用

docker run -d --name subweb --restart always \
  -p 18080:80 \
  stilleshan/subweb

访问 http://127.0.0.1:18080

docker 自定义版 + 短链接版

自定义版可以挂载配置文件来修改API 地址,短链接地址,站点名称,导航链接.
参考以下命令,修改本地挂载路径,启动容器后会生成config.js配置文件,更改后刷新生效.

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

同时也可以不挂载目录,直接通过-e环境变量来修改API 地址,短链接地址站点名称,但是无法修改导航链接.
注意:以下域名请严格填写 http 或 https 协议,结尾不要 / 斜杠符号.

docker run -d --name subweb --restart always \
  -p 18080:80 \
  -e SITE_NAME=subweb \
  -e API_URL=https://sub.ops.ci \
  -e SHORT_URL=https://s.ops.ci \
  stilleshan/subweb

访问 http://127.0.0.1:18080

推荐使用 nginx 反向代理部署

Vercel 快速部署

为方便 docker 用户方便挂载或环境变量部署,默认main分支不支持Vercel,需要fork仓库少许设置才能部署至Vercel.

  1. fork 本仓库, 注意取消勾选Copy the main branch only
  2. Vercel 中创建项目使用subweb首次部署.
  3. 部署完毕后,在Vercel项目 - Settings - Git - Production Branch 设置为vercel.
  4. 修改环境变量 - Settings - Environment Variables 中修改环境变量,具体参考仓库中.env文件.
  5. Vercel 部署如需修改导航栏信息,需自行修改src/layouts/components/header/navBarItem.js文件.

subweb + subconverter + myurls 合并进阶版

详情查看 stilleshan/sub

链接

subweb's People

Contributors

stilleshan 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.