Skip to content

Commit c917dbd

Browse files
Merge pull request #1 from henrikhimself/develop
Beta1
2 parents 914e4b5 + 6334d46 commit c917dbd

41 files changed

Lines changed: 2476 additions & 2 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.editorconfig

Lines changed: 524 additions & 0 deletions
Large diffs are not rendered by default.

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "nuget"
4+
target-branch: "develop"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"
8+
- package-ecosystem: "github-actions"
9+
target-branch: "develop"
10+
directory: "/"
11+
schedule:
12+
interval: "weekly"

.github/workflows/cd.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: cd
2+
3+
on:
4+
pull_request:
5+
branches: [ "main" ]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
security-events: write
12+
packages: read
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Setup CodeQL
17+
uses: github/codeql-action/init@v3
18+
with:
19+
languages: csharp
20+
build-mode: none
21+
- name: Setup .NET
22+
uses: actions/setup-dotnet@v4
23+
with:
24+
dotnet-version: |
25+
8.0.x
26+
9.0.x
27+
- name: Restore
28+
run: dotnet restore
29+
- name: Build
30+
run: dotnet build --no-restore
31+
- name: CodeQL Analysis
32+
uses: github/codeql-action/analyze@v3

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
branches: [ "develop" ]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Setup
13+
uses: actions/setup-dotnet@v4
14+
with:
15+
dotnet-version: |
16+
8.0.x
17+
9.0.x
18+
- name: Build
19+
run: dotnet build
20+
- name: Test
21+
run: dotnet test --no-build

.gitignore

Lines changed: 233 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,233 @@
1+
.attic
2+
TestReport
3+
4+
## Visual Studio
5+
# User-specific files
6+
*.rsuser
7+
*.suo
8+
*.user
9+
*.userosscache
10+
*.sln.docstates
11+
12+
# Build results
13+
[Dd]ebug/
14+
[Dd]ebugPublic/
15+
[Rr]elease/
16+
[Rr]eleases/
17+
x64/
18+
x86/
19+
[Ww][Ii][Nn]32/
20+
[Aa][Rr][Mm]/
21+
[Aa][Rr][Mm]64/
22+
bld/
23+
[Bb]in/
24+
[Oo]bj/
25+
[Ll]og/
26+
[Ll]ogs/
27+
28+
# Visual Studio 2015/2017 cache/options directory
29+
.vs/
30+
31+
# MSTest test Results
32+
[Tt]est[Rr]esult*/
33+
[Bb]uild[Ll]og.*
34+
35+
# Benchmark Results
36+
BenchmarkDotNet.Artifacts/
37+
38+
# .NET Core
39+
project.lock.json
40+
project.fragment.lock.json
41+
artifacts/
42+
43+
# ASP.NET Scaffolding
44+
ScaffoldingReadMe.txt
45+
46+
# StyleCop
47+
StyleCopReport.xml
48+
49+
# Files built by Visual Studio
50+
*_i.c
51+
*_p.c
52+
*_h.h
53+
*.ilk
54+
*.meta
55+
*.obj
56+
*.iobj
57+
*.pch
58+
*.pdb
59+
*.ipdb
60+
*.pgc
61+
*.pgd
62+
*.rsp
63+
*.sbr
64+
*.tlb
65+
*.tli
66+
*.tlh
67+
*.tmp
68+
*.tmp_proj
69+
*_wpftmp.csproj
70+
*.log
71+
*.tlog
72+
*.vspscc
73+
*.vssscc
74+
.builds
75+
*.pidb
76+
*.svclog
77+
*.scc
78+
79+
# Visual Studio profiler
80+
*.psess
81+
*.vsp
82+
*.vspx
83+
*.sap
84+
85+
# Visual Studio Trace Files
86+
*.e2e
87+
88+
# Coverlet is a free, cross platform Code Coverage Tool
89+
coverage*.json
90+
coverage*.xml
91+
coverage*.info
92+
93+
# Visual Studio code coverage results
94+
*.coverage
95+
*.coveragexml
96+
97+
# Click-Once directory
98+
publish/
99+
100+
# Publish Web Output
101+
*.[Pp]ublish.xml
102+
*.azurePubxml
103+
# Note: Comment the next line if you want to checkin your web deploy settings,
104+
# but database connection strings (with potential passwords) will be unencrypted
105+
*.pubxml
106+
*.publishproj
107+
108+
# Microsoft Azure Web App publish settings. Comment the next line if you want to
109+
# checkin your Azure Web App publish settings, but sensitive information contained
110+
# in these scripts will be unencrypted
111+
PublishScripts/
112+
113+
# NuGet Packages
114+
*.nupkg
115+
# NuGet Symbol Packages
116+
*.snupkg
117+
# The packages folder can be ignored because of Package Restore
118+
**/[Pp]ackages/*
119+
# except build/, which is used as an MSBuild target.
120+
!**/[Pp]ackages/build/
121+
# Uncomment if necessary however generally it will be regenerated when needed
122+
#!**/[Pp]ackages/repositories.config
123+
# NuGet v3's project.json files produces more ignorable files
124+
*.nuget.props
125+
*.nuget.targets
126+
127+
# Microsoft Azure Build Output
128+
csx/
129+
*.build.csdef
130+
131+
# Microsoft Azure Emulator
132+
ecf/
133+
rcf/
134+
135+
# Visual Studio cache files
136+
# files ending in .cache can be ignored
137+
*.[Cc]ache
138+
# but keep track of directories ending in .cache
139+
!?*.[Cc]ache/
140+
141+
# Others
142+
ClientBin/
143+
~$*
144+
*~
145+
*.dbmdl
146+
*.dbproj.schemaview
147+
*.jfm
148+
*.pfx
149+
*.publishsettings
150+
orleans.codegen.cs
151+
152+
# Including strong name files can present a security risk
153+
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
154+
*.snk
155+
156+
# Backup & report files from converting an old project file
157+
# to a newer Visual Studio version. Backup files are not needed,
158+
# because we have git ;-)
159+
_UpgradeReport_Files/
160+
Backup*/
161+
UpgradeLog*.XML
162+
UpgradeLog*.htm
163+
ServiceFabricBackup/
164+
*.rptproj.bak
165+
166+
# SQL Server files
167+
*.mdf
168+
*.ldf
169+
*.ndf
170+
171+
# Business Intelligence projects
172+
*.rdl.data
173+
*.bim.layout
174+
*.bim_*.settings
175+
*.rptproj.rsuser
176+
*- [Bb]ackup.rdl
177+
*- [Bb]ackup ([0-9]).rdl
178+
*- [Bb]ackup ([0-9][0-9]).rdl
179+
180+
# OpenCover UI analysis results
181+
OpenCover/
182+
183+
# Azure Stream Analytics local run output
184+
ASALocalRun/
185+
186+
# MSBuild Binary and Structured Log
187+
*.binlog
188+
189+
# Local History for Visual Studio
190+
.localhistory/
191+
192+
# Visual Studio History (VSHistory) files
193+
.vshistory/
194+
195+
# VS Code files for those working on multiple tools
196+
.vscode/*
197+
!.vscode/settings.json
198+
!.vscode/tasks.json
199+
!.vscode/launch.json
200+
!.vscode/extensions.json
201+
*.code-workspace
202+
203+
# Local History for Visual Studio Code
204+
.history/
205+
206+
## macOS
207+
# General
208+
.DS_Store
209+
.AppleDouble
210+
.LSOverride
211+
212+
# Icon must end with two \r
213+
Icon
214+
215+
216+
# Thumbnails
217+
._*
218+
219+
# Files that might appear in the root of a volume
220+
.DocumentRevisions-V100
221+
.fseventsd
222+
.Spotlight-V100
223+
.TemporaryItems
224+
.Trashes
225+
.VolumeIcon.icns
226+
.com.apple.timemachine.donotpresent
227+
228+
# Directories potentially created on remote AFP share
229+
.AppleDB
230+
.AppleDesktop
231+
Network Trash Folder
232+
Temporary Items
233+
.apdisk

.vscode/extensions.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"recommendations": [
3+
"editorconfig.editorconfig",
4+
"ms-dotnettools.csdevkit"
5+
]
6+
}

.vscode/settings.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"dotnet.defaultSolution": "ReverseProxy.sln",
3+
"editor.minimap.enabled": false,
4+
"files.exclude": {
5+
"**/bin": true,
6+
"**/obj": true
7+
},
8+
"git.enableCommitSigning": true,
9+
"csharp.debug.symbolOptions.searchNuGetOrgSymbolServer": true,
10+
"csharp.debug.symbolOptions.searchMicrosoftSymbolServer": true,
11+
"csharp.debug.justMyCode": true,
12+
"csharp.debug.requireExactSource": true,
13+
"csharp.debug.suppressJITOptimizations": false,
14+
"editor.inlayHints.enabled": "on",
15+
"csharp.inlayHints.enableInlayHintsForImplicitVariableTypes": true,
16+
"csharp.inlayHints.enableInlayHintsForTypes": true,
17+
"dotnet.inlayHints.enableInlayHintsForIndexerParameters": true,
18+
"dotnet.inlayHints.enableInlayHintsForLiteralParameters": true
19+
}

Directory.Build.props

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<Project>
2+
3+
<ItemGroup>
4+
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.556">
5+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
6+
</PackageReference>
7+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.7.0">
8+
<PrivateAssets>all</PrivateAssets>
9+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
10+
</PackageReference>
11+
<PackageReference Include="SonarAnalyzer.CSharp" Version="10.9.0.115408">
12+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
13+
</PackageReference>
14+
</ItemGroup>
15+
16+
<ItemGroup>
17+
<AdditionalFiles Include="..\..\stylecop.json" />
18+
</ItemGroup>
19+
20+
</Project>

Directory.Build.targets

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<Project>
2+
3+
<PropertyGroup>
4+
<RootNamespace>Hj.$(MSBuildProjectName.Replace(" ", "_"))</RootNamespace>
5+
<LangVersion>Latest</LangVersion>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
<Nullable>enable</Nullable>
8+
<Authors>Henrik Jensen</Authors>
9+
<Description>Pairs Microsoft YARP with a web API for runtime configuration and automatic self-signed certificates.</Description>
10+
<PackageTags>testing;mock;reverse-proxy;certificates</PackageTags>
11+
<PackageProjectUrl>https://github.com/henrikhimself/DotNet-ReverseProxy.git</PackageProjectUrl>
12+
<RepositoryUrl>https://github.com/henrikhimself/DotNet-ReverseProxy.git</RepositoryUrl>
13+
<RepositoryType>git</RepositoryType>
14+
<Version>1.0.0-beta1</Version>
15+
</PropertyGroup>
16+
17+
</Project>

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# DotNet-ReverseProxy
2-
Pairs Microsoft YARP with a web API for runtime configuration and automatic self-signed certificates.
1+
# A Reverse Proxy.
2+
This is a reverse proxy that pairs Microsoft YARP with a web API for runtime configuration and automatic self-signed certificates.

0 commit comments

Comments
 (0)