Recommendations from the forum seem to contradict the documentation. I am working through several issues after the upgrade, and not knowing if the forums or the documentation are correct is complicating things.
Iâd say theyâre mostly complete. Thereâs another section at Hosting | PowerShell Universal with some more settings that would be needed from initially standing up PSU. What kind of issue(s) are you having?
I was also having an issue when trying to invoke an endpoint. Error âThe proxy tunnel request to proxy âhttp://restrictedproxy.xxx.xxxxx.com/â failed with status code â502â.â
I opened a support ticket yesterday but havenât heard back yet.
However, when I arrived this morning, the website wasnât working, so I restarted the service. Now, Iâm unable to get past the loading screen after logging in. I didnât see anything useful in the log so I went trying to figure out how to enable more logging which got me to asking questions about the appsettings.json settings in this thread.
Can you describe your setup? What kind of host is PSU running on? Are you using the MSI installer, are you hosting PSU in IIS, etc.? Also, you said this happened after an upgrade. What did you upgrade from?
There are major changes between 4.x and 5.x regarding how PSU talks to itself internally. Have you viewed Module | PowerShell Universal to see if all of these changes to things such as the Security Model, URL, etc. have been accounted for in your customized appsettings.json file?
If you switch the security model to Integrated, it wonât use the external URL and just the internal back channel. It may help as it effectively makes everything work like -Integrated and doesnât require tokens or SSL certs.
Adam helped me solve the problem today. The solution was to add the local host to the âno_proxyâ environment variable. I added the actual hostname of the server, the URL used for the web interface, localhost, and 127.0.0.1 and restarted the service. Then everything worked as expected.