drn-hosting

Configures secure ASP.NET Core web apps with managed startup hooks, routing and centralized defaults for credential-free environments.

20|3|Updated Aug 13, 2023
One-click install
npx skills add https://github.com/duranserkan/DRN-Project --skill drn-hosting
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: drn-hosting
Source: https://github.com/duranserkan/DRN-Project/tree/main/.agent/skills/drn-hosting
Command: npx skills add https://github.com/duranserkan/DRN-Project --skill drn-hosting

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

DRN.Framework.Hosting reduces boilerplate for bootstrapping web apps with secure defaults, endpoint configuration, and Razor Pages integration, delivering a consistent hosting experience.

Core Features & Use Cases

  • DrnProgramBase-based startup pattern for ASP.NET Core web apps with MFA and security defaults.
  • Centralized configuration of CSP, security headers, cookie policy, logging, and endpoint mapping.
  • Use cases: new hosted DRN applications, adding or customizing middlewares, enabling or tailoring Swagger/OpenAPI, and local development with optional external dependencies.

Quick Start

Create a new program by inheriting DrnProgramBase<T> and override AddServicesAsync to register your hosted services.

Frequently Asked Questions about drn-hosting

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I bootstrap an ASP.NET Core Razor Pages app with MFA and security defaults?

To bootstrap an ASP.NET Core Razor Pages app with MFA, inherit DrnProgramBase<T> and override AddServicesAsync to register hosted services. This automatically applies centralized security headers, CSP, and cookie policy.

What is DrnProgramBase used for in ASP.NET Core hosting pipelines?

DrnProgramBase provides a startup pattern for ASP.NET Core hosting pipelines, automating secure web app bootstrapping, endpoint mapping, logging, and Razor Pages integration across development and production environments.

Can I customize Content Security Policy and security headers for my DRN web app?

Yes, you can customize Content Security Policy and security headers. The framework centralizes configuration for CSP, cookie policy, and logging, allowing you to tailor these security defaults during the DrnProgramBase bootstrapping process.

Does DRN.Framework.Hosting support launching external dependencies during local development?

Yes, DRN.Framework.Hosting supports launching external dependencies in DEBUG mode. This optional feature assists local development by automatically starting required external services alongside your application startup pipeline.

How do I enable Swagger and OpenAPI in a DRN-based hosted application?

You can enable or tailor Swagger and OpenAPI in a DRN-based hosted application by utilizing the framework's centralized endpoint configuration and middleware customization capabilities within the DrnProgramBase startup pipeline.