
注意:此服务已不再使用,项目已归档。
redirector是Dandiarchive Docker环境的重定向服务组件,主要用于处理HTTP请求的重定向逻辑,通过Nginx作为反向代理,结合Python服务实现请求转发和重定向功能。
原用于Dandiarchive项目中的URL重定向需求,实现域名请求的代理和转发。由于项目已归档,当前不再推荐用于生产环境。
bashapt-get update apt-get install -y git python3.7 nginx vim fail2ban python3.7-dev python3-pip
编辑Nginx站点配置文件:
bashvi /etc/nginx/sites-enabled/girder.dandiarchive.org
配置内容:
nginxserver { listen 80; server_name dandiarchive.org; location / { proxy_pass http://localhost:8080/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } }
bashservice nginx restart service nginx status
bashadd-apt-repository -y ppa:certbot/certbot apt-get update apt-get install -y certbot python-certbot-nginx certbot --nginx
bashpython3.7 -m pip install --upgrade pip
bashgit clone https://github.com/dandi/redirector.git cd redirector pip3.7 install -r requirements.txt nohup python3.7 serve.py &
该仓库使用pre-commit进行代码风格和语法检查。在Python和Git环境中使用方法如下:
bashpip install pre-commit pre-commit install
配置后,每次git commit时将自动运行pre-commit检查,必要时进行调整,并要求重新提交。



探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务