harbor/docs/administration/general-settings/_index.md

36 lines
1.3 KiB
Markdown
Raw Normal View History

---
title: Configure Global Settings
weight: 20
---
2020-01-13 13:02:39 +01:00
You can configure Harbor to connect to an email server, set the registry in read-only mode, and configure Harbor so that only system administrators can create projects.
## Configure an Email Server
You can configure Harbor to connect to an email server. The email server is only used to send out responses to users who request to reset their password.
2020-01-13 13:02:39 +01:00
![browse project](../../img/new-config-email.png)
2020-01-13 13:02:39 +01:00
## Make the Registry Read Only
You can set Harbor to read-only mode. In read-only mode, Harbor allows `docker pull` but prevents `docker push` and the deletion of repositories and tags.
![Read-only mode](../../img/read-only.png)
2020-01-13 13:02:39 +01:00
If it set to true, deleting repositories, tags and pushing images are not permitted.
![browse project](../../img/read-only-enable.png)
2020-01-13 13:02:39 +01:00
```sh
docker push 10.117.169.182/demo/ubuntu:14.04
2020-01-13 13:02:39 +01:00
The push refers to a repository [10.117.169.182/demo/ubuntu]
0271b8eebde3: Preparing
denied: The system is in read only mode. Any modification is prohibited.
2020-01-13 13:02:39 +01:00
```
## Set Who Can Create Projects
Use the **Project Creation** drop-down menu to set which users can create projects. Select **Everyone** to allow all users to create projects. Select **Admin Only** to allow only users with the Harbor system administrator role to create projects.
2020-01-13 13:02:39 +01:00
![browse project](../../img/new-proj-create.png)