> For the complete documentation index, see [llms.txt](https://ayakaleaf-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://ayakaleaf-pro.ayaka.space/on-premises/da/konfiguration/overleaf-toolkit/public-access.md).

# Offentlig adgang

Du kan give adgang til din Overleaf-instans på to måder:

* Del et projektlink med gæster
* Tillad brugere at selvregistrere (kun tilgængelig i [ayaka-notes/overleaf-pro](https://github.com/ayaka-notes/overleaf-pro))

### Gæsteadgang

{% hint style="info" %}
Som standard skal en bruger, selv hvis vedkommende får fat i et projektets delingslink, **logge ind** før de kan deltage i en kollaborativ projekteredigeringssession.
{% endhint %}

For at tillade anonym adgang til projekter, der deles via link, skal du angive begge variabler nedenfor:

{% 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` aktiverer anonym læse-/skriveadgang til projekter, der deles via link.

`OVERLEAF_ALLOW_PUBLIC_ACCESS` forhindrer ikke-autentificerede brugere i at blive omdirigeret til login-siden.

Genopret containere med `bin/up`. Åbn derefter en URL til linkdeling i et privat vindue.

### Offentlig registrering

Offentlig registrering er kun tilgængelig i [ayaka-notes/overleaf-pro](https://github.com/ayaka-notes/overleaf-pro).

{% hint style="danger" %}
Bemærk venligst, at når du aktiverer offentlig registrering, **alle** med adgang til din Overleaf-instans kan registrere sig som bruger.

Registreringsprocessen verificerer ikke e-mailadresser, så brug den kun på et intranet eller i et betroet miljø, eller deaktiver den, når du ikke længere har brug for registrering.
{% endhint %}

Som standard tillader hverken Community Edition eller Overleaf Pro offentlig registrering.

For at aktivere det, skal du tilføje dette til `config/variables.env`:

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

```dotenv
OVERLEAF_ALLOW_PUBLIC_REGISTRATION=true
```

{% endcode %}

Genopret containere med `bin/up`.

Klik derefter på **Tilmeld dig** eller besøg `/register`.

<figure><img src="/files/1ce87c6ea705cc60b2a25a84b457003806dc069d" alt=""><figcaption></figcaption></figure>

### Registrering med begrænset domæne

Offentlig registrering med begrænset domæne er kun tilgængelig i [ayaka-notes/overleaf-pro](https://github.com/ayaka-notes/overleaf-pro).

Før du aktiverer dette, skal du konfigurere e-maillevering, så brugerne kan modtage invitationer og meddelelser. Se [E-maillevering](/on-premises/da/konfiguration/overleaf-toolkit/email-delivery.md).

Tilføj derefter følgende linje til `config/variables.env`:

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

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

{% endcode %}

`OVERLEAF_ALLOW_PUBLIC_REGISTRATION` kan indstilles til:

* `true` for at tillade alle, der kan tilgå siden, at registrere sig
* `@example.domain` for at begrænse registrering til e-mails i det domæne


---

# 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://ayakaleaf-pro.ayaka.space/on-premises/da/konfiguration/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.
