Seji64 / LAPS-WebUI

A nice and simple Web Interface for LAPS (Local Administrator Password Solution)
MIT License
29 stars 6 forks source link

Accessing the WebUI from other computers #5

Closed nyxfpv closed 2 years ago

nyxfpv commented 3 years ago

Is there a way to access the UI from other computers, it's only working on the local computer.

Seji64 commented 3 years ago

add the following to your appsettings.json:

"Kestrel": {
    "EndPoints": {
      "Http": {
        "Url": "http://0.0.0.0:8080"
      }
    }
  },

So it should something like this:

{
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft": "Warning",
      "Microsoft.Hosting.Lifetime": "Information"
    }
  },
"Kestrel": {
    "EndPoints": {
      "Http": {
        "Url": "http://0.0.0.0:8080"
      }
    }
  },
  "LDAP": {
    "Server": "ldap.example.com",
    "Port": 636,
    "UseSSL": true,
    "TrustAllCertificates": true,
    "SearchBase": "OU=Clients,DC=example,DC=com,"
  },
  "AllowedHosts": "*"
}

If you use the Docker Image you can use the ASPNETCORE_Kestrel__EndPoints__Http__Url Environment Variable

otter208 commented 1 year ago

Hi, how can we setup https to visit the site instead of using http?

Seji64 commented 1 year ago

Hi, how can we setup https to visit the site instead of using http?

Use a Reverse Proxy (Caddy,traefik,nginx,happroxy etc.)