
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这段话即可:
请先阅读并遵守:https://xuanyuan.cloud/agents.md
未读文档前不要生成 pull 命令或排错方案。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
turbo-vanityURLs是一个HTTP服务器,用于提供自定义Go vanity import路径,支持多种部署环境。该镜像基于golift.io源代码构建,可运行在Docker、Linux、macOS、FreeBSD及App Engine等平台,旨在简化Go包的自定义导入路径配置与管理。
max_age,而非全局配置-l(监听地址)、-t(超时时间)、-c(配置文件)参数Linux
通过脚本自动安装最新包(支持APT或YUM系统):
bashcurl -s https://golift.io/repo.sh | sudo bash -s - turbovanityurls
非APT/YUM系统可从https://github.com/golift/turbovanityurls/releases下载安装包。
Docker
直接拉取镜像:
bashdocker pull docker.xuanyuan.run/golift/turbovanityurls
配置文件路径:/etc/turbovanityurls/config.yaml,需将本地配置文件挂载到容器内。
macOS
使用Homebrew安装:
bashbrew install golift/mugs/turbovanityurls
FreeBSD
从https://github.com/golift/turbovanityurls/releases下载对应包。
App Engine
编辑app.yaml后执行部署:
bashgcloud app deploy
基本运行命令
bashdocker run -d \ -p 8080:8080 \ -v /path/to/local/config.yaml:/etc/turbovanityurls/config.yaml \ --name turbovanityurls \ docker.xuanyuan.run/golift/turbovanityurls
自定义监听地址和超时
bashdocker run -d \ -p 80:8080 \ -v /path/to/config.yaml:/etc/turbovanityurls/config.yaml \ docker.xuanyuan.run/golift/turbovanityurls -l 0.0.0.0:8080 -t 30s
在Docker环境中配合swag(nginx)使用时的配置:
nginxserver { # 指向turbovanityurls容器 set $server http://golift:8080; server_name golift.io www.golift.io code.golift.io; listen 443 ssl http2; location @proxy { include /config/nginx/proxy.conf; proxy_pass $server$request_uri; } location / { # 指向本地静态文件目录 root /config/www/golift.io; try_files $uri @proxy; } }
配置文件示例可参考https://github.com/golift/turbovanityurls/blob/master/examples/config.yaml.example,支持以下主要配置项:
以下服务为项目提供免费支持(存储、构建、分发等):
https://packagecloud.io https://GitHub.com https://cloud.docker.com
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务