diff --git a/.github/workflows/copilot_instructions.md b/.github/workflows/copilot_instructions.md new file mode 100644 index 0000000..a78dc2d --- /dev/null +++ b/.github/workflows/copilot_instructions.md @@ -0,0 +1,44 @@ +# GitHub Copilot Instructions + +This repository is responsible for hosting the Culinary Command app. + +## .NET, C#, and Coding Standards + +### Version +- Specifically target dotnet9.0 (`9.0.0`) + +### Naming Conventions +Follow general naming conventions used in .NET/C#/Blazor +- Classes, interfaces, enums, structs, DTOs, models, constants, methods, namespaces, properties: `PascalCase` +- Local variables, method parameters: `camelCase` +- Private fields: `_camelCase` + + + +### Documentation +- Do NOT add docstrings to any code. +- DO NOT add any inline comments to any code. +- Code should be self-documenting through clear naming and structure. + + +### Code Style +- A singular code line should not surpass 100 characters. +- Use 4 spaces for indentation +- Use double quotes for indentation + + +### Response Requirements +- When asked to provide an example, structure the response in a clear, organized, and understandable way. +- When referring to a file, list the exact location of where the file is located. + + +### Testing + + +### Dependencies + + +### Requirements +- Do NOT hardcode secrets, API keys, or credentials. +- + \ No newline at end of file diff --git a/CulinaryCommandApp/Program.cs b/CulinaryCommandApp/Program.cs index 0834f07..61d9efd 100644 --- a/CulinaryCommandApp/Program.cs +++ b/CulinaryCommandApp/Program.cs @@ -123,17 +123,14 @@ string MaskPwd(string s) app.UseExceptionHandler("/Error", createScopeForErrors: true); // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts. app.UseHsts(); + app.UseHttpsRedirection(); } // Temporarily disable HTTPS redirect for development -//app.UseHttpsRedirection(); app.UseStaticFiles(); app.UseAntiforgery(); app.MapRazorComponents() .AddInteractiveServerRenderMode(); -// Simple health endpoint for load balancers/CI checks -app.MapGet("/health", () => "OK"); - app.Run(); diff --git a/CulinaryCommandApp/appsettings.json b/CulinaryCommandApp/appsettings.json index db25040..5fd798a 100644 --- a/CulinaryCommandApp/appsettings.json +++ b/CulinaryCommandApp/appsettings.json @@ -2,6 +2,7 @@ "ConnectionStrings": { "DefaultConnection": "" }, + "https_port": 443, "Logging": { "LogLevel": { "Default": "Information",