> 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/pt/configuracao/overleaf-toolkit/public-access.md).

# Acesso público

Pode oferecer acesso à sua instância do Overleaf de duas formas:

* Partilhar um link do projeto com convidados
* Permitir que os utilizadores se registem autonomamente (apenas disponível em [ayaka-notes/overleaf-pro](https://github.com/ayaka-notes/overleaf-pro))

### Acesso de convidados

{% hint style="info" %}
Por predefinição, mesmo que um utilizador obtenha um link de partilha do projeto, tem de **iniciar sessão** antes de poderem entrar numa sessão colaborativa de edição do projeto.
{% endhint %}

Para permitir acesso anónimo a projetos partilhados por link, defina ambas as variáveis abaixo:

{% 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` permite leitura/escrita anónimas em projetos partilhados por link.

`OVERLEAF_ALLOW_PUBLIC_ACCESS` impede que utilizadores não autenticados sejam redirecionados para a página de início de sessão.

Recrie os contentores com `bin/up`. Depois abra um URL de partilha de link numa janela privada.

### Registo público

O registo público só está disponível em [ayaka-notes/overleaf-pro](https://github.com/ayaka-notes/overleaf-pro).

{% hint style="danger" %}
Tenha em atenção que, assim que ativar o registo público, **qualquer pessoa** com acesso à sua instância do Overleaf pode registar-se como utilizador.

O processo de registo não verifica endereços de email, por isso, utilize-o apenas numa intranet ou num ambiente de confiança, ou desative-o quando já não precisar de registo.
{% endhint %}

Por predefinição, nem a Community Edition nem o Overleaf Pro permitem registo público.

Para o ativar, adicione isto a `config/variables.env`:

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

```dotenv
OVERLEAF_ALLOW_PUBLIC_REGISTRATION=true
```

{% endcode %}

Recrie os contentores com `bin/up`.

Depois clique em **Registar-se** ou visite `/register`.

<figure><img src="/files/3701b9bfe465d7e95990eaf8023cb545923b9dd6" alt=""><figcaption></figcaption></figure>

### Registo com domínio restrito

O registo público com domínio restrito só está disponível em [ayaka-notes/overleaf-pro](https://github.com/ayaka-notes/overleaf-pro).

Antes de ativar isto, configure a entrega de email para que os utilizadores possam receber convites e notificações. Consulte [Entrega de e-mails](/on-premises/pt/configuracao/overleaf-toolkit/email-delivery.md).

Depois adicione a seguinte linha a `config/variables.env`:

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

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

{% endcode %}

`OVERLEAF_ALLOW_PUBLIC_REGISTRATION` pode ser definido para:

* `true` para permitir que qualquer pessoa que consiga aceder ao site se registe
* `@example.domain` para restringir o registo a emails desse domínio


---

# 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/pt/configuracao/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.
