> For the complete documentation index, see [llms.txt](https://overleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://overleaf-pro.ayaka.space/on-premises/vi/cau-hinh/overleaf-toolkit/public-access.md).

# Truy cập công khai

Bạn có thể cung cấp quyền truy cập vào phiên bản Overleaf của mình theo hai cách:

* Chia sẻ liên kết dự án với khách
* Cho phép người dùng tự đăng ký (chỉ có sẵn trong [ayaka-notes/overleaf-pro](https://github.com/ayaka-notes/overleaf-pro))

### Quyền truy cập khách

{% hint style="info" %}
Theo mặc định, ngay cả khi người dùng có được liên kết chia sẻ dự án, họ vẫn phải **đăng nhập** trước khi họ có thể tham gia một phiên chỉnh sửa dự án cộng tác.
{% endhint %}

Để cho phép truy cập ẩn danh cho các dự án được chia sẻ bằng liên kết, hãy đặt cả hai biến dưới đây:

{% code title="config/variables.env" %}

```dotenv
OVERLEAF_ALLOW_ANONYMOUS_READ_AND_WRITE_SHARING=true
OVERLEAF_ALLOW_PUBLIC_ACCESS=true
```

{% endcode %}

`OVERLEAF_ALLOW_ANONYMOUS_READ_AND_WRITE_SHARING` bật chế độ đọc/ghi ẩn danh trên các dự án được chia sẻ bằng liên kết.

`OVERLEAF_ALLOW_PUBLIC_ACCESS` ngăn người dùng chưa xác thực bị chuyển hướng đến trang đăng nhập.

Tạo lại các container với `bin/up`. Sau đó mở một URL chia sẻ liên kết trong cửa sổ riêng tư.

### Đăng ký công khai

Đăng ký công khai chỉ có sẵn trong [ayaka-notes/overleaf-pro](https://github.com/ayaka-notes/overleaf-pro).

{% hint style="danger" %}
Xin lưu ý rằng khi bạn bật đăng ký công khai, **bất kỳ ai** có quyền truy cập vào phiên bản Overleaf của bạn đều có thể đăng ký làm người dùng.

Quy trình đăng ký không xác minh địa chỉ email, vì vậy chỉ nên sử dụng nó trên mạng nội bộ hoặc trong môi trường đáng tin cậy, hoặc tắt nó khi bạn không còn cần đăng ký nữa.
{% endhint %}

Theo mặc định, cả Community Edition lẫn Overleaf Pro đều không cho phép đăng ký công khai.

Để bật tính năng này, hãy thêm dòng sau vào `config/variables.env`:

{% code title="config/variables.env" %}

```dotenv
OVERLEAF_ALLOW_PUBLIC_REGISTRATION=true
```

{% endcode %}

Tạo lại các container với `bin/up`.

Sau đó nhấp **Đăng ký** hoặc truy cập `/register`.

<figure><img src="/files/9122a38752bf91e98e3cf9fe63d667e1723739af" alt=""><figcaption></figcaption></figure>

### Đăng ký với miền giới hạn

Đăng ký công khai theo miền giới hạn chỉ có sẵn trong [ayaka-notes/overleaf-pro](https://github.com/ayaka-notes/overleaf-pro).

Trước khi bật tính năng này, hãy cấu hình gửi email để người dùng có thể nhận lời mời và thông báo. Xem [Gửi email](/on-premises/vi/cau-hinh/overleaf-toolkit/email-delivery.md).

Sau đó thêm dòng sau vào `config/variables.env`:

{% code title="config/variables.env" overflow="wrap" %}

```dotenv
OVERLEAF_ALLOW_PUBLIC_REGISTRATION=@example.domain
```

{% endcode %}

`OVERLEAF_ALLOW_PUBLIC_REGISTRATION` có thể được đặt thành:

* `true` để cho phép bất kỳ ai có thể truy cập trang web đăng ký
* `@example.domain` để giới hạn đăng ký cho các email trong miền đó


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://overleaf-pro.ayaka.space/on-premises/vi/cau-hinh/overleaf-toolkit/public-access.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
