# Полное руководство: Traefik + CrowdSec с AppSec WAF в LXC-контейнере на Proxmox и вишенка на торте.

**URL:** <https://forum.samohosting.ru/t/polnoe-rukovodstvo-traefik-crowdsec-s-appsec-waf-v-lxc-kontejnere-na-proxmox-i-vishenka-na-torte/1991>\
**Category:** Traefik\
**Tags:** гайд, руководство\
**Created:** [04.Март.2026 17:20:01 UTC](https://forum.samohosting.ru/t/polnoe-rukovodstvo-traefik-crowdsec-s-appsec-waf-v-lxc-kontejnere-na-proxmox-i-vishenka-na-torte/1991 "2026-03-04T17:20:01Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![ala-a-din](https://forum.samohosting.ru/letter_avatar_proxy/v4/letter/a/977dab/32.png) [@ala-a-din](https://forum.samohosting.ru/u/ala-a-din)\
**Post date:** [24.Май.2026 16:43:06 UTC](https://forum.samohosting.ru/t/polnoe-rukovodstvo-traefik-crowdsec-s-appsec-waf-v-lxc-kontejnere-na-proxmox-i-vishenka-na-torte/1991/21 "2026-05-24T16:43:06Z")

</div>

Попробуйте так:

http:  
routers:  
nextcloud:  
rule: “Host(`cloud.example.ru`)” # Замените на ваш домен  
entryPoints:

- websecure  
tls:  
certResolver: letsencrypt  
options: modern@file  
middlewares:
- chain-public@file  
service: nextcloud

services:  
nextcloud:  
loadBalancer:  
passHostHeader: true  
servers:

- url: “[http://192.168.100.101:8080](http://192.168.100.101:8080)” # Замените на IP и порт вашего Nextcloud

Так же в NC нужно настроить config/config.php

Точно не помню, но вроде так:

‘overwriteprotocol’ =\> ‘https’,  
‘trusted\_domains’ =\>  
array (  
0 =\> ‘[cloud.example.ru](http://cloud.example.ru)’,  
),  
‘trusted\_proxies’ =\>  
array (  
0 =\> ‘192.168.100.100’, // IP-адрес вашего контейнера Traefik  
),  
‘forwarded\_for\_headers’ =\>  
array (  
0 =\> ‘HTTP\_X\_FORWARDED\_FOR’,  
),

---

<div class="post-metadata">

**Author:** ![freespace](https://forum.samohosting.ru/letter_avatar_proxy/v4/letter/f/b9bd4f/32.png) [@freespace](https://forum.samohosting.ru/u/freespace)\
**Post date:** [24.Май.2026 19:31:47 UTC](https://forum.samohosting.ru/t/polnoe-rukovodstvo-traefik-crowdsec-s-appsec-waf-v-lxc-kontejnere-na-proxmox-i-vishenka-na-torte/1991/22 "2026-05-24T19:31:47Z")

</div>

а почему не цепочка chain-public-iframe?

---

<div class="post-metadata">

**Author:** ![ala-a-din](https://forum.samohosting.ru/letter_avatar_proxy/v4/letter/a/977dab/32.png) [@ala-a-din](https://forum.samohosting.ru/u/ala-a-din)\
**Post date:** [25.Май.2026 05:32:38 UTC](https://forum.samohosting.ru/t/polnoe-rukovodstvo-traefik-crowdsec-s-appsec-waf-v-lxc-kontejnere-na-proxmox-i-vishenka-na-torte/1991/23 "2026-05-25T05:32:38Z")

</div>

- Если Nextcloud используется только как файловое хранилище без офисных редакторов → `chain-public@file`.

- Если есть интеграция с OnlyOffice/Collabora → `chain-public-iframe@file`

[Предыдущая страница](https://forum.samohosting.ru/t/polnoe-rukovodstvo-traefik-crowdsec-s-appsec-waf-v-lxc-kontejnere-na-proxmox-i-vishenka-na-torte/1991.md?page=1)
