Coder Social home page Coder Social logo

my-urls's Introduction

Myurls-Railway

将下面大佬项目部署到railway上

GitHub stilleshan/dockerfiles
Docker stilleshan/myurls

docker image support for X86 and ARM

简介

基于 CareyWang/MyUrls 短链接程序的修改版容器镜像,主要解决方便的自定义前端域名以及 ARM64 架构的支持.

示例

https://s.ops.ci

部署

Deploy on Railway

  • 点击上方图片跳转 Railway
  • 登陆你的 Github 账号
  • 填写你要创建的库名
  • 添加自定义域名至 MYURLS_DOMAIN
  • 点击部署
  • 配置自定义域名以通过此域名访问

🎉🎉🎉 完成!🎉🎉🎉

绑定域名

简述,具体配置请参考官方文档

  • 在 Cloudflare 中添加 Cname 解析指向 yourapp.yourrailwayproject.com
    • 可能长这样 https://xxxx-xxxxx.xx.railway.app/
  • 并配置 SSL/TLS加密模式完全完全(严格)
  • RailwaySettings - Domains 中接入该域名

docker compose

由于需要搭配redis使用,建议使用docker compose部署.

  • 下载 docker-compose.yml
  • 修改MYURLS_DOMAIN为你的域名
  • 修改MYURLS_TTL为短链接有效期(单位:天)
docker-compose up -d

nginx 反代

需要搭配 nginx 反向代理配置 HTTPS 证书使用,参考domain.conf配置文件,注意需要修改域名,证书路径,日志路径

参考

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.