Skip to content

Commit

Permalink
add head meta
Browse files Browse the repository at this point in the history
  • Loading branch information
Sianao committed Nov 27, 2024
1 parent 71646d5 commit 3c9c5b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions router/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ func NewRouter(c *cache.Redis) *mux.Router {
path := fmt.Sprintf("github.com/%s/%s/releases/download/%s/%s", userBaisc[0], userBaisc[1], vars["version"], vars["file"])
c.Incr(path)
if c.Exists(path) {
fmt.Println("this way ")
r.URL.Path = path
http.FileServer(http.Dir("./cache")).ServeHTTP(w, r)
v, ok := r.Header[http.CanonicalHeaderKey("X-Real-IP")]
Expand Down
3 changes: 3 additions & 0 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ export default function Home() {
</title>
<link rel="icon" href="favicon.ico" type="image/x-icon"/>
<meta name='description' content='Github Proxy Github 国内代理 GitHub 文件 , Releases , archive , gist , raw.githubusercontent.com 文件代理加速下载服务.' />
<meta property="og:url" content="https://gitproxy.click"></meta>
<meta property="og:title" content="GitHub Proxy 代理加速"></meta>
<meta property="og:description" content="GitHub 文件 , Releases , archive , gist , raw.githubusercontent.com 文件代理加速下载服务."></meta>
<meta name='keywords' content={`Github Proxy Github 国内代理 GitHub 文件 , Releases `} />

</Head>
Expand Down

0 comments on commit 3c9c5b6

Please sign in to comment.