Set up in a single IIS site - acrotron-spezvuz/auralization-proto GitHub Wiki
Important
Updates for more flexible deploy are committed to the repository
Prepare
Staging environment will be used for all next steps to avoid production configuration changes. How to configure environment: Set up local IIS environment
- API project will have api alias and http://localhost/api url with auralization endpoint http://localhost/api/api/auralization.
- SPA project will have spa alias and http://localhost/spa url.
Prepare API project
Block all requests from other domains
- Open appsettings.Staging.json
- Remove all values from
AllowedOrigins
, leave empty brackets:"AllowedOrigins": []
Allow requests from other domains
- Open appsettings.Staging.json
- Add domains to the
AllowedOrigins
list, example:"AllowedOrigins": [ "http://example.com", "http://www.example.com" ]
Preapare SPA Project
- Open appsettings.Staging.json
- Change value of
AuralizaitionEndpoint
to/api/api/auralization
, example:"AuralizaitionEndpoint": "/api/api/Auralizarion"
Deploy to Default Web Site
- Publish API and SPA projects into folders using wizard or command prompt
- Open IIS Manager and select Default Web Site
- Open context menu (right click) and select Add Application
- Fill form and press Ok.
API site example:
SPA site example:
Done!