# How add NGINX configuration outside http encapsulation

**URL:** <https://forum.yunohost.org/t/how-add-nginx-configuration-outside-http-encapsulation/25377>\
**Category:** Apps packaging\
**Tags:** nginx, config, french, english\
**Created:** [July 2, 2023, 9:51am UTC](https://forum.yunohost.org/t/how-add-nginx-configuration-outside-http-encapsulation/25377 "2023-07-02T09:51:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tibs245](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tibs245/32/1120_2.png) [@tibs245](https://forum.yunohost.org/u/tibs245)\
**Post date:** [July 2, 2023, 9:51am UTC](https://forum.yunohost.org/t/how-add-nginx-configuration-outside-http-encapsulation/25377/1 "2023-07-02T09:51:27Z")

</div>

Bonjour,

Je souhaite contribuer sur le package `adguard_home` pour rendre le DNS-over-TLS accessible.

Je détails toutes les étapes ici : [DNS-over-TLS port not available · Issue #101 · YunoHost-Apps/adguardhome\_ynh · GitHub](https://github.com/YunoHost-Apps/adguardhome_ynh/issues/101#issuecomment-1615989506)

> Résumé : Je dois ajouter un include pour rediriger le protocol TLS vers DNS dans la conf de NGINX

Mon problème est que pour ajouter la config nginx supplémentaire il m’est nécessaire d’ajouter la configuration en dehors de `http {}`.

Donc je ne peux pas le faire de manière traditionnel.

Je voudrais votre avis pour avoir le meilleur moyen de le faire.

* * *

Hi,

I want to contribute on the package `adguard_home` to have DNS-over-TLS enabled.

I details all steps here : [DNS-over-TLS port not available · Issue #101 · YunoHost-Apps/adguardhome\_ynh · GitHub](https://github.com/YunoHost-Apps/adguardhome_ynh/issues/101#issuecomment-1615989506)

> In resume : I need add a include in NGINX config to redirect encrypted TLS in decrypted DNS.

My problem / Question : I don’t known what is the best way to add nginx configuration outside http encapsulation `http {}`

Can you help me to find this best way ?

Than you in advance 😊
