> 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/zh-tw/she-ding/overleaf-toolkit/public-access.md).

# 公開存取

您可以透過兩種方式提供存取您的 Overleaf 執行個體：

* 與訪客分享專案連結
* 允許使用者自行註冊（僅適用於 [ayaka-notes/overleaf-pro](https://github.com/ayaka-notes/overleaf-pro))

### 訪客存取

{% hint style="info" %}
預設情況下，即使使用者取得了專案分享連結，他們仍必須 **登入** 之後才能加入協作專案編輯工作階段。
{% endhint %}

若要讓透過連結分享的專案可匿名存取，請將下列兩個變數都設為：

{% 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` 可在透過連結分享的專案上啟用匿名讀寫。

`OVERLEAF_ALLOW_PUBLIC_ACCESS` 可防止未經驗證的使用者被重新導向至登入頁面。

使用以下設定重新建立容器 `bin/up`。然後在私密視窗中開啟連結分享 URL。

### 公開註冊

公開註冊僅適用於 [ayaka-notes/overleaf-pro](https://github.com/ayaka-notes/overleaf-pro).

{% hint style="danger" %}
請注意，一旦您啟用公開註冊， **任何人** 只要能存取您的 Overleaf 執行個體，就可以註冊成為使用者。

註冊流程不會驗證電子郵件地址，因此請僅在內部網路或可信任的環境中使用，或在不再需要註冊時將其停用。
{% endhint %}

預設情況下，Community Edition 與 Overleaf Pro 都不允許公開註冊。

若要啟用它，請將以下內容加入 `config/variables.env`:

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

```dotenv
OVERLEAF_ALLOW_PUBLIC_REGISTRATION=true
```

{% endcode %}

使用以下設定重新建立容器 `bin/up`.

然後點選 **註冊** 或造訪 `/register`.

<figure><img src="/files/a1447ed5efd70a8a83fd27d40fc5a2286d34f02d" alt=""><figcaption></figcaption></figure>

### 限制網域註冊

限定網域的公開註冊僅適用於 [ayaka-notes/overleaf-pro](https://github.com/ayaka-notes/overleaf-pro).

在啟用此功能之前，請先設定電子郵件傳送，讓使用者可以收到邀請與通知。請參閱 [電子郵件傳送](/on-premises/zh-tw/she-ding/overleaf-toolkit/email-delivery.md).

然後將以下這一行加入 `config/variables.env`:

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

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

{% endcode %}

`OVERLEAF_ALLOW_PUBLIC_REGISTRATION` 可以設為：

* `true` 允許任何可連線到此網站的人註冊
* `@example.domain` 將註冊限制為該網域中的電子郵件


---

# 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/zh-tw/she-ding/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.
