62 lines
1.5 KiB
Markdown
62 lines
1.5 KiB
Markdown
# rastus01.com
|
|
|
|
Statische persoenliche Landingpage fuer `rastus01.com`.
|
|
|
|
Die Seite dient aktuell als einfache Selfhosting-Startseite und stellt die
|
|
Matrix-Discovery-Dateien unter `.well-known/matrix/` bereit.
|
|
|
|
## Inhalt
|
|
|
|
- Dunkle, responsive Landingpage ohne externe Frameworks
|
|
- Klassische statische Dateien: `index.html`, `style.css`, `script.js`
|
|
- Matrix Homeserver Discovery:
|
|
- `/.well-known/matrix/server` aus `.well-known/matrix/server.json`
|
|
- `/.well-known/matrix/client` aus `.well-known/matrix/client.json`
|
|
- Dockerfile fuer eine einfache Nginx-Auslieferung
|
|
|
|
## Matrix
|
|
|
|
`/.well-known/matrix/server`
|
|
|
|
```json
|
|
{"m.server":"matrix.rastus01.com:443"}
|
|
```
|
|
|
|
`/.well-known/matrix/client`
|
|
|
|
```json
|
|
{"m.homeserver":{"base_url":"https://matrix.rastus01.com"}}
|
|
```
|
|
|
|
Die Dateien liegen im Repository mit `.json`-Dateiendung. Nginx liefert die
|
|
Matrix-Discovery-Endpunkte weiterhin ohne `.json` aus, damit Clients die
|
|
standardisierten URLs finden.
|
|
|
|
## Lokal mit Docker
|
|
|
|
Image bauen:
|
|
|
|
```sh
|
|
docker build -t rastus01-static-site .
|
|
```
|
|
|
|
Container starten:
|
|
|
|
```sh
|
|
docker run --rm -p 8080:80 rastus01-static-site
|
|
```
|
|
|
|
Danach ist die Seite unter `http://localhost:8080` erreichbar.
|
|
|
|
## Coolify
|
|
|
|
Das Repository kann in Coolify als Dockerfile-basierter Service deployed
|
|
werden.
|
|
|
|
- Build-Methode: Dockerfile
|
|
- Exposed Port: `80`
|
|
- Kein Build-Command noetig
|
|
- Kein Start-Command noetig
|
|
|
|
Die `nginx.conf` setzt fuer die Matrix `.well-known`-Dateien den Content-Type
|
|
`application/json` und CORS-Header.
|