
# Пример конфигурации для Traefik File Provider
# Этот файл нужно добавить в вашу конфигурацию Traefik на хосте 192.168.50.59

http:
  routers:
    global-it24:
      rule: "Host(`video.mscsrv.ru`)"
      entryPoints:
        - web
      middlewares:
        - redirect-to-https
      service: global-it24-service

    global-it24-secure:
      rule: "Host(`video.mscsrv.ru`)"
      entryPoints:
        - websecure
      middlewares:
        - security-headers
        - compress
      service: global-it24-service
      tls:
        certResolver: letsencrypt
        # Или укажите путь к сертификатам:
        # certFile: /path/to/cert.pem
        # keyFile: /path/to/key.pem

  services:
    global-it24-service:
      loadBalancer:
        servers:
          # Замените 192.168.50.X на реальный IP хоста, где запущен контейнер
          - url: "http://192.168.50.X:3000"
        healthCheck:
          path: /
          interval: 30s
          timeout: 10s

  middlewares:
    redirect-to-https:
      redirectScheme:
        scheme: https
        permanent: true

    security-headers:
      headers:
        customResponseHeaders:
          X-Frame-Options: "SAMEORIGIN"
          X-Content-Type-Options: "nosniff"
          X-XSS-Protection: "1; mode=block"
          Referrer-Policy: "strict-origin-when-cross-origin"
        sslRedirect: true
        stsSeconds: 31536000
        stsIncludeSubdomains: true
        stsPreload: true

    compress:
      compress: {}
