Configuration file

Hey,

After installing PU there is no appsettings.json file to edit. I want to change the default port to 443 and a certificate. Using the code supplied:

“Kestrel”: {
“Endpoints”: {
“HTTP”: {
“Url”: “http://*:5000”
}
}
},

But this is not enough alone as the service does not start. can you help pointing me in the write direction?

Folder I am looking in is:

C:\ProgramData\PowerShellUniversal

Thanks

You can use the one that is installed into C:\Program Files (X86)\Universal as an example. Just copy and paste that to program data and then you can modify it. It will then use the one in ProgramData if it exists.

hey so I have done this and when running with just HTTP everything works but when I put in the HTTPS it crashes:

{
“Kestrel”: {
“Endpoints”: {
“HTTP”: {
“Url”: “http://:80"
},
“HTTPS”: {
“Url”: "https://
:443”,
“Certificate”: {
“Path”: “%PROGRAMDATA%/PowerShellUniversal/certfile.pfx”,
“Password”: “password”
}
}
}
},

The error in the logs is cant find file, the file is definitely there.
I have also tried:

%PROGRAMDATA%\PowerShellUniversal\certfile.pfx
%PROGRAMDATA%\PowerShellUniversal\certfile.pfx

“HttpsInlineCertStore”: {
“Url”: “https://:443",
“Certificate”: {
“Subject”: "CN=
.XX.XX, OU=Domain Control Validated”,
“Store”: “my”,
“Location”: “LocalMachine”,
“AllowInvalid”: “false”
}
}

Also tried this

Ok seems like I fixed it, had to use the full relitive path not the %Progdata% and \ the \

1 Like

Hey on this topic. IE (yeah I know who uses this nowadays) when hitting a dashboard just displays a blank page. Is this a known issue?

any thoughts on the IE issue?

Universal doesn’t officially support IE. If you press F12 and look in the console, there will be an error and I can take a quick peek to see if it’s an easy fix.

Thanks, unfortunately one of our apps for something specific only supports IE as the browser so trying to see if we can get this working.

I’ve put it on the backlog to take a look. Do you have a requirement for the admin console to support IE or just the dashboard?

Just dashboards.

We use a application called remote desktop manager (Its great) trying to put our dashboard into the welcome page so everyone has quick access to the tools hosted on it. But for whatever reason they force that welcome page to be IE even though they support chrome for entries. Very annoying.

1 Like