Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/twsl/uestratv
A quick attempt at hosting my own Üstra Fahrgastfernsehen with Blazor.
https://github.com/twsl/uestratv
aspnetcore aspnetcore31 blazor blazor-server blazorstrap uestra
Last synced: 10 days ago
JSON representation
A quick attempt at hosting my own Üstra Fahrgastfernsehen with Blazor.
- Host: GitHub
- URL: https://github.com/twsl/uestratv
- Owner: twsl
- License: mit
- Created: 2019-12-20T00:24:47.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-20T02:17:25.000Z (almost 5 years ago)
- Last Synced: 2024-11-10T04:38:41.641Z (2 months ago)
- Topics: aspnetcore, aspnetcore31, blazor, blazor-server, blazorstrap, uestra
- Language: C#
- Homepage:
- Size: 95.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# UestraTV
[![Docker Pulls](https://img.shields.io/docker/pulls/twsldev/uestra-fahrgastfernsehen)](https://hub.docker.com/r/twsldev/uestra-fahrgastfernsehen)
A quick attempt at hosting my own Üstra Fahrgastfernsehen with Blazor.
## Motivation
I wanted to test out [blazor](https://github.com/dotnet/blazor) and [BlazorStrap](https://github.com/chanan/BlazorStrap), so I needed a small test project.
## Settings
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.
## Build
```bash
docker build . -f ./UestraTV/Dockerfile -t uestratv:latest
```## Run
To run the container, you should be familiar with ASP.NET Core, Docker and HTTPS. It's documented quite well [here](https://docs.microsoft.com/en-us/aspnet/core/security/docker-https?view=aspnetcore-3.1), but i tried to paste the important commands in here as well.
Add a certificate:
```bash
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
```bash
-p 51806:80 -p 44379:443
```Then mount the storage volume for certificates
```bash
-v "${HOME}/.aspnet/https:/root/.aspnet/https:ro"
```And then add [secrets](https://docs.microsoft.com/en-us/aspnet/core/security/app-secrets?view=aspnetcore-3.1) or simply add the password directly
```bash
-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
```bash
-e "ASPNETCORE_URLS=https://+:443;http://+:80"
```