Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
docker-registry
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
docker-registry
Commits
ade2eb63
Commit
ade2eb63
authored
Oct 20, 2021
by
liugaoling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add root password
parent
44511683
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
docker-compose.yml
conf/docker-compose.yml
+1
-1
authentication.go
main/authentication.go
+1
-1
No files found.
conf/docker-compose.yml
View file @
ade2eb63
...
@@ -10,6 +10,7 @@ services:
...
@@ -10,6 +10,7 @@ services:
restart
:
always
restart
:
always
environment
:
environment
:
-
REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY=/data
-
REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY=/data
-
REGISTRY_STORAGE_DELETE_ENABLED=true
-
REGISTRY_AUTH=token
-
REGISTRY_AUTH=token
-
REGISTRY_AUTH_TOKEN_REALM=https://tx-fileserver.cloudam.cn:5001/auth
-
REGISTRY_AUTH_TOKEN_REALM=https://tx-fileserver.cloudam.cn:5001/auth
-
REGISTRY_AUTH_TOKEN_SERVICE="CE-Z1"
-
REGISTRY_AUTH_TOKEN_SERVICE="CE-Z1"
...
@@ -17,7 +18,6 @@ services:
...
@@ -17,7 +18,6 @@ services:
-
REGISTRY_AUTH_TOKEN_ROOTCERTBUNDLE=/ssl/ssl.pem
-
REGISTRY_AUTH_TOKEN_ROOTCERTBUNDLE=/ssl/ssl.pem
-
REGISTRY_HTTP_TLS_CERTIFICATE=/ssl/ssl.pem
-
REGISTRY_HTTP_TLS_CERTIFICATE=/ssl/ssl.pem
-
REGISTRY_HTTP_TLS_KEY=/ssl/ssl.key
-
REGISTRY_HTTP_TLS_KEY=/ssl/ssl.key
-
REGISTRY_STORAGE_DELETE_ENABLED=true
dockerauth
:
dockerauth
:
image
:
cesanta/docker_auth
image
:
cesanta/docker_auth
ports
:
ports
:
...
...
main/authentication.go
View file @
ade2eb63
...
@@ -23,7 +23,7 @@ func main() {
...
@@ -23,7 +23,7 @@ func main() {
re
,
_
:=
utils
.
HttpLogin
(
uName
,
password
)
re
,
_
:=
utils
.
HttpLogin
(
uName
,
password
)
isUserAuthenticated
:=
re
isUserAuthenticated
:=
re
if
strings
.
EqualFold
(
uName
,
"root"
)
{
if
(
strings
.
EqualFold
(
uName
,
"root"
)
&&
strings
.
EqualFold
(
password
,
"bkunyun2021"
)
)
{
isUserAuthenticated
=
true
isUserAuthenticated
=
true
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment