forked from linux/documentation
1 file changed
+3
-6
@@ -123,13 +123,10 @@ Since local login is disabled, service users need to be created inside the gitea
|
||||
# connect to the container as user git
|
||||
docker exec -it --user git gitea bash
|
||||
|
||||
# create service user with given password
|
||||
gitea admin user create --username {org-gitea} --password {provided password} --email {username@psi.ch} --must-change-password=false --restricted
|
||||
# create service user
|
||||
gitea admin user create --username {org-gitea} --email {username@psi.ch} --restricted --user-type bot
|
||||
|
||||
# create service user with a random generated password
|
||||
gitea admin user create --username {org-gitea} --random-password --random-password-length {value default:12} --email {username@psi.ch} --must-change-password=false --restricted
|
||||
|
||||
# create a token with a give scope (scopes can be found here: https://gitea.psi.ch/user/settings/applications) and can be comma seperated
|
||||
# create a token with a give scope (scopes can be found here: https://gitea.psi.ch/user/settings/applications) that can be comma seperated but without spaces!
|
||||
gitea admin user generate-access-token --username {org-gitea} --token-name {username-scope} --scopes {read|write:scope}
|
||||
```
|
||||
|
||||
|
||||
Reference in new issue
Block a user