Web Variante in Go V0.1

This commit is contained in:
concierge committed 2026-11-12 20:00:33 +01:00
1 parent f9e3e94629
commit 692b9b6ef8
60 files changed
+13140

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
#!/usr/bin/env bash
# Build a static Linux/arm64 binary for LektorenPlan.
#
# Usage:
# ./scripts/build-linux-arm64.sh [output]
#
# The build is CGO-free, so the result runs on any Linux arm64 distribution
# with a reasonably recent kernel (no SQLite or libc runtime needed).
set -euo pipefail
cd "$(dirname "$0")/.."
output="${1:-dist/lektorenplan-linux-arm64}"
version="${LP_VERSION:-$(git describe --tags --always --dirty 2>/dev/null || echo 1.0.0)}"
mkdir -p "$(dirname "$output")"
echo "Baue $output (Version $version) …"
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 \
go build -trimpath -buildvcs=false \
-ldflags "-s -w -X main.version=$version" \
-o "$output" .
echo "Fertig: $output"
file "$output" 2>/dev/null || true
+24
View File
@@ -0,0 +1,24 @@
[Unit]
Description=LektorenPlan – Gottesdienst- und Dienstplanung
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=lektorenplan
Group=lektorenplan
WorkingDirectory=/opt/lektorenplan
ExecStart=/opt/lektorenplan/lektorenplan -addr 127.0.0.1:8080 -db /var/lib/lektorenplan/lektorenplan.db
Environment=LP_SEED_DEMO=false
Environment=LP_SECURE_COOKIES=true
Restart=on-failure
RestartSec=3
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/var/lib/lektorenplan
UMask=0077
[Install]
WantedBy=multi-user.target