diff --git a/docs/docker/handbrake.md b/docs/docker/handbrake.md new file mode 100644 index 0000000..e829aec --- /dev/null +++ b/docs/docker/handbrake.md @@ -0,0 +1,47 @@ +```yaml title="docker-compose.yml" + +version: "3.7" +services: + +## Handbrake - Video Converter + handbrake: + container_name: handbrake + image: jlesage/handbrake:latest + restart: always + networks: + - traefik_proxy +# ports: +# - "5800:5800" + security_opt: + - no-new-privileges:true + volumes: + - $USERDIR/docker/handbrake/config:/config:rw + - $USERDIR/docker/handbrake/watch:/watch:rw # Watch folder + - $USERDIR/docker/handbrake/output:/output:rw # Output folder + - /mnt/storage:/storage:ro # Data folder - can be anything + - $USERDIR/dwnloads:/downloads:ro # Data folder - can be anything + environment: + - USER_ID=$PUID + - GROUP_ID=$PGID + - TZ=$TZ + - UMASK=002 + - DISPLAY_WIDTH=1600 + - DISPLAY_HEIGHT=768 +# - AUTOMATED_CONVERSION_PRESET=H.265 MKV 480p30 + - AUTOMATED_CONVERSION_PRESET=H.265 MKV 1080p30 + - AUTOMATED_CONVERSION_FORMAT=mkv + labels: + - "traefik.enable=true" + ## HTTP Routers + - "traefik.http.routers.handbrake-rtr.entrypoints=https" + - "traefik.http.routers.handbrake-rtr.rule=Host(`handbrake.$DOMAINNAME`)" + ## Middlewares + - "traefik.http.routers.handbrake-rtr.middlewares=secure-chain@file" + ## HTTP Services + - "traefik.http.routers.handbrake-rtr.service=handbrake-svc" + - "traefik.http.services.handbrake-svc.loadbalancer.server.port=5800" + +networks: + traefik_proxy: + external: true +``` \ No newline at end of file diff --git a/docs/network/mikrotik/bgp.md b/docs/network/mikrotik/bgp.md new file mode 100644 index 0000000..35b2e90 --- /dev/null +++ b/docs/network/mikrotik/bgp.md @@ -0,0 +1,12 @@ +# BGP на RouteOS 7 + +``` +/routing bgp template +add as="ВАША ВЫДУМАННАЯ AS БЕЗ СКОБОК" disabled=no hold-time=4m input.filter=bgp_in .ignore-as-path-len=yes keepalive-time=1m multihop=yes name=antifilter routing-table=main + +/routing bgp connection +add disabled=no hold-time=4m input.filter=bgp_in .ignore-as-path-len=yes keepalive-time=1m local.address= "ВАШ ВНУТРЕННИЙ ИП БЕЗ СКОБОК" .role=ebgp multihop=yes name=antifilter_bgp remote.address=45.154.73.71/32 .as=65432 router-id="ВАШ ВНЕШНИЙ ИП БЕЗ СКОБОК" routing-table=main templates=antifilter + +/routing filter rule +add chain=bgp_in disabled=no rule="set gw "название VPN интерфейса"; accept;" +``` \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index 5380243..c278b72 100755 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -32,6 +32,7 @@ nav: - Игровые сервера: - Valheim: docker/games/valheim.md - WikiJS: docker/wikijs.md + - HandBrake: docker/handbrake.md - Ubuntu Server: - ubuntu/index.md - Команды: ubuntu/commands.md @@ -133,6 +134,7 @@ nav: - Split-DNS: network/mikrotik/split-dns.md - Hairpin NAT: network/mikrotik/hairpin-nat.md - UPnP: network/mikrotik/upnp.md + - BGP: network/mikrotik/bgp.md - Ubiquiti: - Добавление новой точки: network/ubi/add-new-ap.md - Ошибка обновления: network/ubi/failed-update.md