halkyon/halkyon_learn_server/pubspec.yaml
Tizian 「ティツィアーン」 e8ddb8b950
feat(profile): profile pages on the account domain, and links verified by rel="me"
A profile now has a page on the web, at the root of the account domain
(https://halkyon.eu/@raisondetredev where the operator set ACCOUNT_DOMAIN,
else on the instance's web server), so the address belongs to the
identity rather than to Learn and stays when other services share it
(ADR 0011). The page shows what the app's profile sheet shows, in English
or German, without JavaScript or cookies, asks search engines not to list
it, marks every link rel="me" so other sites can verify links to it, and
sends a visitor who asked on another host to its own address. Caddy
forwards /@… to the web server, and serves nothing else on the account
domain; compose now passes ACCOUNT_DOMAIN on, which it never did.

A link is verified as Mastodon verifies one: its page links back to the
profile's with rel="me". profile.checkLinks fetches each link's page, at
most ten times an hour, over HTTPS on port 443 and to public addresses
only, connecting to the address it checked and verifying the certificate
for the host, with three redirects, 1 MiB and ten seconds at most, and
keeps what links back on the profile (verifiedLinks, a column of a table
no device syncs). A changed link loses its check, a new handle all of
them. The app shows the page's address to copy, checks a link saved by
itself and on Check links, and marks verified links in the form and in
others' profiles; a check answered after a newer save only adds its
checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
2026-10-17 19:46:29 +02:00

51 lines
1.4 KiB
YAML

name: halkyon_learn_server
description: Starting point for a Serverpod server.
# version: 1.0.0
# homepage: https://www.example.com
environment:
sdk: '^3.13.0'
resolution: workspace
dependencies:
clock: ^1.1.3
crypto: ^3.0.7
# Reads the pages profile links point to, for their rel="me" back-links.
html: ^0.15.6
# Mails email sign-in's codes over SMTP (ADR 0010).
mailer: ^7.2.0
serverpod: 4.0.4
serverpod_auth_idp_server: 4.0.4
serverpod_offline_sync_server: 0.0.10
dev_dependencies:
serverpod_test: 4.0.4
test: ^1.25.5
serverpod:
# Companion Flutter apps that `serverpod start` can launch (Ctrl+R), keyed
# by a display alias. The default device is the web server, opening the
# machine's default browser when ready. All non-reserved properties are
# forwarded to `flutter run`. For the best IDE debugging experience, use
# `chrome` or a native target as the device. See the example below:
#
# Admin:
# path: ../apps/admin_flutter
# displayName: "Admin app"
# auto_launch: true
# device: chrome
# target: lib/main.dart
# web-hostname: 0.0.0.0
# web-port: 8090
# release: true
# pub: false
# dart-define:
# API_URL=https://admin.example.com
# FLAVOR=production
flutter_apps:
halkyon_learn:
path: ../halkyon_learn_flutter
displayName: "Halkyon learn app"
auto_launch: true
target: lib/driver.dart
device: linux