feat: Phase 0 shells, design system, server skeleton, Docker and CI

- Titano.Ui: DESIGN.md tokens (dark/light), generated 16-px icon set,
  styles for all standard controls, custom chrome window with snap
  layouts, rail, job bar, Auto/manual slider, chips, toasts.
- Titano desktop shell with sections, Settings (language, theme),
  About and a --capture screenshot mode.
- Titano Server skeleton: env/server.json configuration, self-signed
  TLS with fingerprint, /health, /server/info, i18n endpoint and the
  embedded admin panel; in-process server tests.
- Docker image (multi-arch, PUID/PGID, health check), compose file,
  Unraid template; CI, release and nightly workflows; changelog tool.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
Claude committed 2026-10-02 09:35:03 +00:00
1 parent 800843d2ae
commit c40b6a7cd3
122 files changed
+6838 -22

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
TITANO_ADMIN_PASSWORD=change-me-at-first-login
TITANO_DB_PASSWORD=choose-a-long-random-password
TITANO_ARCHIVE=/mnt/user/Timelapse
TITANO_DATA=./data
TITANO_PGDATA=./pgdata
PUID=1000
PGID=1000
TZ=Europe/Rome
+43
View File
@@ -0,0 +1,43 @@
# syntax=docker/dockerfile:1
# Titano Server — multi-stage, multi-arch (linux/amd64, linux/arm64). BRIEF §14.9.
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:10.0 AS build
ARG TARGETARCH
ARG TITANO_VERSION=0.0.0-dev
WORKDIR /src
COPY global.json Directory.Build.props Directory.Build.targets Titano.slnx ./
COPY i18n/ i18n/
COPY src/Titano.Core/ src/Titano.Core/
COPY src/Titano.Data/ src/Titano.Data/
COPY src/Titano.Protocol/ src/Titano.Protocol/
COPY src/Titano.Server/ src/Titano.Server/
RUN dotnet publish src/Titano.Server/Titano.Server.csproj \
-c Release -a "$TARGETARCH" --no-self-contained \
-p:TitanoVersion="$TITANO_VERSION" -o /out \
&& rm -f /out/*.pdb
FROM mcr.microsoft.com/dotnet/aspnet:10.0
ARG TITANO_VERSION=0.0.0-dev
LABEL org.opencontainers.image.title="Titano Server" \
org.opencontainers.image.description="Time-lapse archive, uploads, jobs and rendering server" \
org.opencontainers.image.version="$TITANO_VERSION" \
org.opencontainers.image.licenses="LicenseRef-Titano-EULA"
ENV TITANO_ARCHIVE_PATH=/archive \
TITANO_DATA_PATH=/data \
TITANO_HTTP_PORT=8080 \
TITANO_HTTPS_PORT=8443 \
TITANO_DB=postgres \
PUID=1000 \
PGID=1000 \
DOTNET_gcServer=1 \
DOTNET_GCHeapAffinitizeMask= \
DOTNET_NOLOGO=1
WORKDIR /app
COPY --from=build /out/ ./
COPY deploy/docker/entrypoint.sh /usr/local/bin/titano-entrypoint
RUN chmod 0755 /usr/local/bin/titano-entrypoint && mkdir -p /archive /data
VOLUME ["/archive", "/data"]
EXPOSE 8080 8443
HEALTHCHECK --interval=30s --timeout=8s --start-period=40s --retries=3 \
CMD ["dotnet", "/app/Titano.Server.dll", "--healthcheck"]
ENTRYPOINT ["/usr/local/bin/titano-entrypoint"]
+44
View File
@@ -0,0 +1,44 @@
# Titano Server with PostgreSQL 17. Start: docker compose up -d Admin panel: http://<host>:8080/admin
name: titano
services:
titano:
image: ghcr.io/alby96/titano-server:latest
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
ports:
- "8080:8080"
- "8443:8443"
environment:
TITANO_ADMIN_USER: admin
TITANO_ADMIN_PASSWORD: ${TITANO_ADMIN_PASSWORD:?set TITANO_ADMIN_PASSWORD in .env}
TITANO_DB: postgres
TITANO_DB_HOST: postgres
TITANO_DB_NAME: titano
TITANO_DB_USER: titano
TITANO_DB_PASSWORD: ${TITANO_DB_PASSWORD:?set TITANO_DB_PASSWORD in .env}
TITANO_TLS_MODE: auto
TITANO_SERVER_NAME: Titano Server
PUID: ${PUID:-1000}
PGID: ${PGID:-1000}
TZ: ${TZ:-UTC}
volumes:
- ${TITANO_ARCHIVE:-./archive}:/archive
- ${TITANO_DATA:-./data}:/data
postgres:
image: postgres:17
restart: unless-stopped
environment:
POSTGRES_DB: titano
POSTGRES_USER: titano
POSTGRES_PASSWORD: ${TITANO_DB_PASSWORD:?set TITANO_DB_PASSWORD in .env}
volumes:
- ${TITANO_PGDATA:-./pgdata}:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U titano -d titano"]
interval: 10s
timeout: 5s
retries: 10
+19
View File
@@ -0,0 +1,19 @@
#!/bin/sh
# Runs Titano Server as PUID:PGID (Unraid/NAS convention). /data is owned by that user; /archive is left as
# mounted (it may hold terabytes) and only checked for write access.
set -eu
PUID="${PUID:-1000}"
PGID="${PGID:-1000}"
umask 002
if [ "$(id -u)" = "0" ]; then
mkdir -p /data
chown -R "$PUID:$PGID" /data
if ! setpriv --reuid="$PUID" --regid="$PGID" --clear-groups -- test -w "${TITANO_ARCHIVE_PATH:-/archive}"; then
echo "warning: ${TITANO_ARCHIVE_PATH:-/archive} is not writable by $PUID:$PGID" >&2
fi
exec setpriv --reuid="$PUID" --regid="$PGID" --clear-groups -- dotnet /app/Titano.Server.dll "$@"
fi
exec dotnet /app/Titano.Server.dll "$@"