rust 1.94

This commit is contained in:
Shautvast 2026-03-24 14:27:12 +01:00
parent f4aa6972e1
commit 2654a26b06
3 changed files with 21 additions and 26 deletions

View file

@ -74,6 +74,7 @@ sudo nano /etc/ssh/sshd_config
``` ```
Set / verify: Set / verify:
``` ```
PasswordAuthentication no PasswordAuthentication no
PermitRootLogin no PermitRootLogin no
@ -160,16 +161,16 @@ Forward the following ports on your router to the Pi's static IP.
to Let's Encrypt before issuing the HTTPS certificate. to Let's Encrypt before issuing the HTTPS certificate.
| External | Internal | | External | Internal |
|---|---| |----------|----------|
| 80/tcp | 80 | | 80/tcp | 80 |
| 443/tcp | 443 | | 443/tcp | 443 |
--- ---
## 7. Clone the platform ## 7. Clone the platform
```bash ```bash
git clone https://github.com/YOUR_USER/Hostityourself.git ~/hiy-platform git clone https://github.com/shautvast/Hostityourself.git ~/hiy-platform
cd ~/hiy-platform cd ~/hiy-platform
``` ```
@ -180,8 +181,8 @@ cd ~/hiy-platform
Copy and edit the environment file: Copy and edit the environment file:
```bash ```bash
cp infra/.env.example infra/.env # if it doesn't exist, create it cp .env.example .env # if it doesn't exist, create it
nano infra/.env nano .env
``` ```
Minimum required variables: Minimum required variables:
@ -211,17 +212,11 @@ and that ports 80 and 443 are forwarded to the Pi (see step 6).
```bash ```bash
cd ~/hiy-platform cd ~/hiy-platform
docker compose --env-file infra/.env up -d --build ./infra/start.sh
docker compose logs -f # watch startup
``` ```
When ready you should see:
``` Open the dashboard: **https://yourdomain.com**
hiy-server | Listening on http://0.0.0.0:3000
```
Open the dashboard: **https://hiy.yourdomain.com**
--- ---
@ -231,10 +226,10 @@ Open the dashboard: **https://hiy.yourdomain.com**
1. Open `https://hiy.yourdomain.com` 1. Open `https://hiy.yourdomain.com`
2. Fill in the **Add App** form: 2. Fill in the **Add App** form:
- **Name** — a URL-safe slug, e.g. `my-api` - **Name** — a URL-safe slug, e.g. `my-api`
- **GitHub Repo URL**`https://github.com/you/my-api.git` - **GitHub Repo URL**`https://github.com/you/my-api.git`
- **Branch**`main` - **Branch**`main`
- **Container Port** — the port your app listens on (e.g. `3000`) - **Container Port** — the port your app listens on (e.g. `3000`)
3. Click **Create App**, then **Deploy** on the new row. 3. Click **Create App**, then **Deploy** on the new row.
4. Watch the build log in the app detail page. 4. Watch the build log in the app detail page.
5. Once done, your app is live at `https://my-api.yourdomain.com`. 5. Once done, your app is live at `https://my-api.yourdomain.com`.
@ -243,13 +238,13 @@ Open the dashboard: **https://hiy.yourdomain.com**
The build engine picks a strategy automatically: The build engine picks a strategy automatically:
| What's in the repo | Strategy | | What's in the repo | Strategy |
|---|---| |---------------------------------------|---------------------------------|
| `Dockerfile` | `docker build` | | `Dockerfile` | `docker build` |
| `package.json` / `yarn.lock` | Cloud Native Buildpack (Node) | | `package.json` / `yarn.lock` | Cloud Native Buildpack (Node) |
| `requirements.txt` / `pyproject.toml` | Cloud Native Buildpack (Python) | | `requirements.txt` / `pyproject.toml` | Cloud Native Buildpack (Python) |
| `go.mod` | Cloud Native Buildpack (Go) | | `go.mod` | Cloud Native Buildpack (Go) |
| `static/` or `public/` directory | Caddy static file server | | `static/` or `public/` directory | Caddy static file server |
A `Dockerfile` always takes precedence. For buildpack strategies, the `pack` A `Dockerfile` always takes precedence. For buildpack strategies, the `pack`
CLI must be installed on the Pi (see below). CLI must be installed on the Pi (see below).
@ -274,7 +269,7 @@ For each app:
2. Open the GitHub repo → **Settings → Webhooks → Add webhook**: 2. Open the GitHub repo → **Settings → Webhooks → Add webhook**:
| Field | Value | | Field | Value |
|---|---| |---|---|
| Payload URL | `https://hiy.yourdomain.com/webhook/<app-id>` | | Payload URL | `https://hiy.yourdomain.com/webhook/<app-id>` |
| Content type | `application/json` | | Content type | `application/json` |
| Secret | *(from the app detail page)* | | Secret | *(from the app detail page)* |

View file

@ -1,7 +1,7 @@
# syntax=docker/dockerfile:1 # syntax=docker/dockerfile:1
# ── Build stage ─────────────────────────────────────────────────────────────── # ── Build stage ───────────────────────────────────────────────────────────────
# Run the compiler on the *build* host; cross-compile to target when needed. # Run the compiler on the *build* host; cross-compile to target when needed.
FROM --platform=$BUILDPLATFORM rust:1.86-slim-bookworm AS builder FROM --platform=$BUILDPLATFORM rust:1.94-slim-bookworm AS builder
ARG BUILDPLATFORM ARG BUILDPLATFORM
ARG TARGETPLATFORM ARG TARGETPLATFORM