Comments (1)
At last I succeed to deploy the project to IIS following below instruction
-
Install .net hosting bundle, urlrewrite2, httpPlatformHandler_amd64.msi, WebPlatformInstaller_x64_en-US.msi
-
hosts file location C:\Windows\System32\drivers\etc
-127.0.0.1 nucleus.com -
Adding a website for Vuejs client project to iis
βIn this case hosts file name nucleus.com should same host name in iis. -
Adding a web application under client to iis as named api
-
Please go to binding section after selecting client website in iis
-Adding another binding whose type https and port 44323 (port may change) -
Please select api in IIS and double click to SSLSettings
-Select Require SSL and Accept then apply changes. -
Please add named βapiβ as per server name in IIS to the url in appsettings.Production.json, launchSettings.json, .env.Production, appSettings.json
-
Please change startup class in server project as follows
private readonly IConfiguration _configuration; public Startup(IConfiguration configuration) { _configuration = configuration; } public void ConfigureServices(IServiceCollection services) { services.ConfigureDbContext(_configuration); services.ConfigureAuthentication(); services.ConfigureJwtTokenAuth(_configuration); services.ConfigureCors(_configuration); services.ConfigureDependencyInjection(); services.ConfigureNucleusApplication(); services.ConfigureSmtp(_configuration); services.AddControllers(setup => { setup.Filters.AddService<UnitOfWorkActionFilter>(); }).AddNewtonsoftJson(); services.AddSwaggerGen(options => { options.SwaggerDoc("v1", new OpenApiInfo { Title = "Nucleus API", Version = "v1" }); options.AddSecurityDefinition("oauth2", new OpenApiSecurityScheme { Description = "Standard Authorization header using the Bearer scheme. Example: \"bearer {token}\"", In = ParameterLocation.Header, Name = "Authorization", Type = SecuritySchemeType.ApiKey }); options.OperationFilter<SecurityRequirementsOperationFilter>(); }); services.AddSingleton<IHttpContextAccessor, HttpContextAccessor>(); } public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { if (env.IsDevelopment() || env.IsProduction()) { app.UseDeveloperExceptionPage(); } else { app.UseHsts(); } app.UseSwagger(); app.UseSwaggerUI(c => { c.SwaggerEndpoint("/swagger/v1/swagger.json", "Nucleus API V1"); }); app.UseCors(_configuration["App:CorsOriginPolicyName"]); app.UseHttpsRedirection(); app.UseRouting(); app.UseAuthentication(); app.UseAuthorization(); app.UseEndpoints(endpoints => { endpoints.MapControllers(); }); }
from nucleus.
Related Issues (20)
- Add localization for vuetify
- Change vuetify localization dynamically
- Upgrade npm packages
- Update document with new version
- Mobile toggle menu is not working
- Mobile design main content HOT 1
- Console error when logged in user that is not admin
- Maybe create host project and its serve clientapp and api together.
- Add permission adding document
- Add tests for forget/reset password
- Entity change history
- Language key/value management
- Use in-memory database for tests
- Add test pipeline to github action workflow
- Why did you create js files for ts files? HOT 2
- Subsequent variable declarations must have the same type. Variable 'require' must be of type 'NodeRequire', but here has type 'Require'.
- aspnet core project MVC
- Download PDF from API backend
- MS Sql server db
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nucleus.