# LNC Backend

From version 0.2 aperture supports connecting to its LND backend over LNC, allowing you to connect to your personal node without the need to open ports or configuring Tor or NAT.

This configuration is different than configuring the [LNC Mailbox](/lightning-network-tools/aperture/mailbox.md), though both may be configured at the same time.

## Create an LNC pairing phrase <a href="#docs-internal-guid-a24df49a-7fff-3fb2-349f-bd877f7028c0" id="docs-internal-guid-a24df49a-7fff-3fb2-349f-bd877f7028c0"></a>

[You can create a pairing phrase using the Lightning Terminal UI or the command line.](/lightning-network-tools/lightning-terminal/connect.md)

## Configure Aperture <a href="#docs-internal-guid-d81cd037-7fff-d310-921e-9e435d777d57" id="docs-internal-guid-d81cd037-7fff-d310-921e-9e435d777d57"></a>

To configure Aperture, you will need to edit or create the configuration file in `~/.aperture/aperture.yaml`

The relevant section should look like this:

```yaml
# The address which the proxy can be reached at.
listenaddr: "localhost:8080"

# Settings for the lnd node used to generate payment requests. All of these
# options are required.
authenticator:
  passphrase: "your pairing phrase"
  mailboxaddress: "mailbox.terminal.lightning.today:443"
  network: "mainnet"
  devserver: false

# The selected database backend. The current default backend is "sqlite".
# Aperture also has support for postgres and etcd.
dbbackend: "sqlite"
```

At the time of writing, Aperture over LNC only works with the default database backend sqlite.

## Run Aperture

You should be able to run aperture with `aperture`.


---

# Agent Instructions: 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:

```
GET https://docs.lightning.engineering/lightning-network-tools/aperture/lnc-backend.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
