homepage/README.md
2024-07-02 16:21:57 +02:00

45 lines
1.1 KiB
Markdown

# homepage
Source for my [homepage](https://viyurz.fr/), built with Axum & Tailwind (CSS gives me nightmares).
## Configuration
Change the default configuration by creating a file at `/etc/homepage/config.toml`
or setting the environment variable `HP_CONFIG_FILE` if using another path.
Configuration options can also be set using environment variables by
preceding the variable name by `HP_` (ex. `HP_LISTEN_ADDRESS`).
## Example service
```
services.toml
[[services]]
name = "Vaultwarden"
description = "Rust rewrite of the Bitwarden server, a password management service."
domain = "vw.viyurz.fr"
language = "Rust"
repository_url = "https://github.com/dani-garcia/vaultwarden"
```
## Create & push multi-platform image
Create a builder that use the `docker-container`` driver, which supports multi-platform builds:
```
docker buildx create --name multiarch --bootstrap
```
Build the multi-platform image using this new builder:
```
docker buildx build --builder multiarch --load --platform linux/amd64,linux/arm64 --tag git.ahur.ac/viyurz/homepage:latest .
```
Publish the image:
```
docker login git.ahur.ac
docker push git.ahur.ac/viyurz/homepage:latest
```