Giter VIP home page Giter VIP logo

icppp's Introduction

icppp

一个帮我应对 ICP 备案页面检查的小玩意儿

为何要写这个项目

前阵子备案的时候,被告知自己之前备案的好几个域名处于无法访问状态。实际原因是自己只用了那些域名的部分二级域名,(例如 cdn.xxx.xxx),并没有去管 www 的解析。

同时之前也有接到过服务商打来的电话向我确认备案域名网站的访问情况。

一般遇到这些问题,我都是匆匆忙忙找个 Bootstrap 的模板站放上去,想着不如一步到位,所以便有了这么个项目哈哈。

效果展示

效果展示

开始使用

Step 1:

/home/app/conf 路径下创建配置文件 icppp.toml(路径也可自定义)。

输入如下配置,其中 ICP 为你网站的域名以及备案信息。

[[icp]]
url = "abc.xyz"
no = "粤ICP备88888888号-1"

[[icp]]
url = "qaz.wsx"
no = "粤ICP备88888888号-2"

Step 2:

docker run -dt --name icppp -p 9315:9315 -v /home/app/conf:/home/app/conf wuhan005/icppp

注意 -v 文件夹的映射路径

Enjoy it!

Caddyfile 配置

若您是使用 Caddy 进行反向代理,可以参考使用如下配置:

# Caddy 1
www.abc.xyz {
    gzip
    proxy / http://127.0.0.1:9315 {
    	header_upstream Host abc.xyz
    }
    tls abc@xyz.com
}
# Caddy 2
www.qaz.wsx {
    encode gzip zstd
    reverse_proxy * http://127.0.0.1:9315
}

icppp's People

Contributors

wuhan005 avatar unknwon 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.