style(13-03): apply Prettier formatting across repo
Mechanical reformat — no logic changes. 398 files changed, 19125 insertions(+), 16457 deletions(-). Prettier 3.8.4 with .prettierrc (singleQuote:true, semi:true, tabWidth:2, trailingComma:all, printWidth:100). Isolated per D-13-08 for reviewability.
This commit is contained in:
+13
-12
@@ -1,4 +1,5 @@
|
||||
<!-- generated-by: gsd-doc-writer -->
|
||||
|
||||
# FamilySync — Deployment Guide
|
||||
|
||||
Self-hosted Docker deployment on Unraid behind Authelia OIDC and a Pangolin/Newt outbound tunnel. The API serves the compiled React PWA as static files on a single port (3000), so only one route needs to be exposed through the tunnel.
|
||||
@@ -7,19 +8,19 @@ Self-hosted Docker deployment on Unraid behind Authelia OIDC and a Pangolin/Newt
|
||||
|
||||
## Deployment Targets
|
||||
|
||||
| Target | Config file |
|
||||
|--------|-------------|
|
||||
| Docker Compose (production) | `docker-compose.yml` |
|
||||
| Docker Compose (dev override) | `docker-compose.dev.yml` |
|
||||
| Container image | `apps/api/Dockerfile` (multi-stage, built from repo root) |
|
||||
| Target | Config file |
|
||||
| ----------------------------- | --------------------------------------------------------- |
|
||||
| Docker Compose (production) | `docker-compose.yml` |
|
||||
| Docker Compose (dev override) | `docker-compose.dev.yml` |
|
||||
| Container image | `apps/api/Dockerfile` (multi-stage, built from repo root) |
|
||||
|
||||
The production compose file brings up three services:
|
||||
|
||||
| Service | Image | Purpose |
|
||||
|---------|-------|---------|
|
||||
| `api` | Built from `apps/api/Dockerfile` target `production` | Hono API + compiled React PWA, listens on port 3000 |
|
||||
| `mariadb` | `mariadb:11` | Persistent MariaDB database |
|
||||
| `redis` | `redis:7-alpine` | Present for live list sync (pub/sub); unused until Phase 4 |
|
||||
| Service | Image | Purpose |
|
||||
| --------- | ---------------------------------------------------- | ---------------------------------------------------------- |
|
||||
| `api` | Built from `apps/api/Dockerfile` target `production` | Hono API + compiled React PWA, listens on port 3000 |
|
||||
| `mariadb` | `mariadb:11` | Persistent MariaDB database |
|
||||
| `redis` | `redis:7-alpine` | Present for live list sync (pub/sub); unused until Phase 4 |
|
||||
|
||||
---
|
||||
|
||||
@@ -43,7 +44,7 @@ Add the following client block to your Authelia `configuration.yml` under `ident
|
||||
public: false
|
||||
authorization_policy: one_factor
|
||||
redirect_uris:
|
||||
- https://familysync.DOMAIN/callback # replace DOMAIN with your actual domain
|
||||
- https://familysync.DOMAIN/callback # replace DOMAIN with your actual domain
|
||||
scopes:
|
||||
- openid
|
||||
- profile
|
||||
@@ -155,7 +156,7 @@ Configure the Pangolin route to forward HTTPS traffic for `https://familysync.DO
|
||||
|
||||
```yaml
|
||||
ports:
|
||||
- "3000:3000"
|
||||
- '3000:3000'
|
||||
```
|
||||
|
||||
Ensure `OIDC_AUTH_EXTERNAL_URL` and `OIDC_REDIRECT_URI` in `.env` match the public hostname Pangolin exposes. Without `OIDC_AUTH_EXTERNAL_URL`, the OIDC middleware builds the callback URI from the internal container hostname, which will not match the URI registered in Authelia and will break the login flow.
|
||||
|
||||
Reference in New Issue
Block a user