ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    Gin 反向代理接口

    Aug 29, 202210 min read
    r.GET("/test/*params", func(c *gin.Context) {
    		filepath := c.Param("params")
    		println(filepath)
    		director := func(req *http.Request) {
    			req.URL.Scheme = "http"
    			req.URL.Host = "192.168.2.230:9008"
    		}
    		proxy := &httputil.ReverseProxy{Director: director}
    		proxy.ServeHTTP(c.Writer, c.Request)
    	})
    

    相关文章

    Mysql 数据库备份

    脚本用于自动备份Mysql数据库,保存最近31天的备份,并删除超出数量的旧备份。

    如何将 Evernote 笔记导入到 Obsidian?

    要将 Evernote 笔记导入 Obsidian,需先在 Evernote 导出为 ENEX 格式,然后在 Obsidian 安装并使用 "mdnotes" 插件导入这些文件,并进行必要的整理和调整。

    ChatGPT Now Available for Windows Early Access Download

    Liunx command not found lsof

    在Linux或macOS系统中,若遇到"lsof command not found",可通过对应发行版的包管理器安装lsof,并使用它来查询端口或进程的详细信息。

    CentOS 7 编译安装 Python 3

    在CentOS 7上编译安装Python 3.9.2的步骤包括更新系统软件包、安装依赖库、下载并解压Python源代码、配置和编译、使用`altinstall`安装、以及验证安装。