Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func main() {
opt := &registry.Option{
Certfile: crt,
Keyfile: key,
TokenExpiration: time.Now().Add(24 * time.Hour).Unix(), // 24hrs
TokenExpiration: (24 * time.Hour).Milliseconds() / 1000, // 24hrs
TokenIssuer: "Authz",
Authenticator: &exampleAuthenticator{}, // could be nil, meaning all users would be authenticated by default
}
Expand Down
2 changes: 1 addition & 1 deletion example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func main() {
opt := &registry.Option{
Certfile: "/mnt/certs/RootCA.crt",
Keyfile: "/mnt/certs/RootCA.key",
TokenExpiration: time.Now().Add(24 * time.Hour).Unix(),
TokenExpiration: (24 * time.Hour).Milliseconds() / 1000,
TokenIssuer: "Authz",
Authenticator: &httpAuthenticator{},
}
Expand Down