Public | Automated Build

Last pushed: 35 minutes ago
Short Description
go-remote-redir implements a http server to support go remote import paths.
Full Description

go-remote-redir

go-remote-redir implements a http server to support go remote import paths.

Usage

Usage:
  go-remote-redir [OPTIONS]

Application Options:
      --listen=        address to listen on (default: 0.0.0.0:8080) [$GRR_LISTEN]
      --pattern=       path pattern (default: /p/(?P<user>[^/]+)/(?P<project>[^/]+).*) [$GRR_PATTERN]
      --meta=          meta tag content for go remote import feature (default: example.io/p/${user}/${project} git ssh://git@gitlab.com/${user}/${project}.git) [$GRR_META]
      --redirect-name= redirect name (default: Gitlab Project Page) [$GRR_REDIRECT_NAME]
      --redirect-to=   redirect to (default: https://gitlab.com/${user}/${project}) [$GRR_REDIRECT_TO]
  -v, --version        show version number

Help Options:
  -h, --help           Show this help message

Example

docker run -p 8080:8080 wikiwi/go-remote-redir

Output

curl localhost:8080/p/user/project?go-get=1
<html>
        <head>
                <title>Go Remote Packages</title>
                <meta name="go-import" content="example.io/p/user/project git ssh://git@gitlab.com/user/project.git">
                <meta http-equiv="refresh" content="0; url=https://gitlab.com/user/project">
                <meta name="robots" content="noindex">
        </head>
        <body>
                You are being automatically redirected to <a href="https://gitlab.com/user/project">Gitlab Project Page</a>.
        </body>
</html>

Docker Hub

Automated build is available at the Docker Hub.

Docker Pull Command
Owner
wikiwi
Source Repository