Restrict Admin to source

Product: PowerShell Universal
Version: 1.5.13

Is there a way to restrict /Admin to only be accessible from the local server, but allow the dashboards and base URL to be accessible from anywhere? Even having /Admin listen on a different port would be fine.

You can use the HideAdminConsole setting in appsettings.json to hide the console completely. Users that do not fit into one of the builtin roles (Administrators, Operators, Readers, Executors) will not be able to access the console. You can still assign them to cutsom roles.


Actually, that doesn’t seem to work: it blocks /Admin locally too, even if the Admin account is assigned the Administrator role. Is there another way?