treafik-ingress

# Traefik v2.4.0 dynamic config fragment for reverse proxy to https://ip
# Filename: /opt/traefik/conf-available.d/40-ubuntu-mate.example.in
# URL: https://ubuntu-mate.rsubr.in
# Backend: http://ip:3000 -- LinuxServer.io/webtop in lxc
# Basic Auth: user/pass: admin / secure_password

http:

# middlewares:
#   ubuntumateAuth:
#     basicAuth:
#       users:
#         - 'admin:$apr1$ruca84Hq$mbjdMZBAG.KWn7vfN/SNK/'


  routers:
    ubuntu-mate:
      rule: Host(`ubuntu-mate.example.in`)
      middlewares:
        - basicAuth@file
      entrypoints:
        - https
      service: ubuntu-mate
      tls:
        certResolver: lets-encrypt

  services:
    ubuntu-mate:
      loadBalancer:
        serversTransport: insecureTransport
        servers:
          - url: 'https://ip:8444'

  serversTransports:
    insecureTransport:
      insecureSkipVerify: true
# Traefik v2.x dynamic config fragment to secure access with HTTP Basic Auth
# Filename: /opt/traefik/conf-enabled.d/10-basic-auth.yaml
#
# Basic Auth: user/pass:
# example: example

http:
  middlewares:
    basicAuth:
      basicAuth:
        headerField: "X-WebAuth-User"
        users:
          - 'example:$apr1$l9wavohn$/kV0F.dGHJsJLX76uoMVE1'