Ich würde gerne meine Programmierarbeit in Windows Stoppen und dafür in Linux über Visual Studio Code fortsetzen.
VSCode ist soweit eingerechnet, .NET 5.0 Installiert und Runtime für ASP erblüht im vollen Glanz, allerdings ist das so, das man für ASP.Net anwendungen unter Linux einiges tun muss. Normalerweise braucht man dafür ein nginx Proxy Reserve.
Gesagt getan:
Code: Alles auswählen
server {
listen 80;
location / {
proxy_pass http://localhost:5000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
Code: Alles auswählen
dotnet run
Buildvorgang wird ausgeführt...
info: Microsoft.Hosting.Lifetime[0]
Now listening on: https://localhost:5001
info: Microsoft.Hosting.Lifetime[0]
Now listening on: http://localhost:5000
info: Microsoft.Hosting.Lifetime[0]
Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
Hosting environment: Development
info: Microsoft.Hosting.Lifetime[0]
Content root path: /home/sickness/Dokumente/Development/ASP.Net Core 5/DatingSite/API
info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
Request starting HTTP/2 GET https://localhost:5001/ - -
upload picture
Jetzt die Frage, was läuft falsch, vielleicht hat ja jemand das schon mal gemacht oder den durchblick, wie ich das Problem Lösen kann?