I’d like to restrict one of my services as much as possible and not show the index.html, disable the UI and all other features that allow to browse the code, show definitions of the service etc.
Basically, I want only the routes I defined in my ServiceModel to be accessible and nothing else at all.
Is there a setting for this? If not, what is the easiest way to achieve this?
Right now, I manually delete the index.html file in my publish folder. I’ve tried excluding it from the publish process by adding this to my project with no luck:
Always FalseIf there are other settings you can think of to restrict access (or to improve security) please let me know.
I set “DebugMode”: false and “DetailedErrors”: false in my appsettings and I disabled the following features in my AppHost.Config:
disableFeatures = Feature.Jsv | Feature.Soap | Feature.Metadata | Feature.Csv;
Thanks.