A quick attempt at hosting my own Üstra Fahrgastfernsehen with Blazor.
I wanted to test out blazor and BlazorStrap, so I needed a small test project.
The only setting is currently the update intervall inside the appsettings.json
with a default value in ms
of 3600000
, which means an update every hour.
docker build . -f ./UestraTV/Dockerfile -t uestratv:latest
To run the container, you should be familiar with ASP.NET Core, Docker and HTTPS. It's documented quite well here, but i tried to paste the important commands in here as well.
Add a certificate:
dotnet dev-certs https -ep ${HOME}/.aspnet/https/uestratv.pfx -p password123
Afterwards you can run the container with the following parameter:
to add an external port
-p 51806:80 -p 44379:443
Then mount the storage volume for certificates
-v "${HOME}/.aspnet/https:/root/.aspnet/https:ro"
And then add secrets or simply add the password directly
-e "ASPNETCORE_Kestrel__Certificates__Default__Password=password123"
Just to be safe, you can tell Kestrel, where to find the certificate, in case you use any other folder than the default
-e "ASPNETCORE_Kestrel__Certificates__Default__Path=/root/.aspnet/https/uestratv.pfx"
Requests should be upgraded, but you can specify listening to port 443 as well
-e "ASPNETCORE_URLS=https://+:443;http://+:80"