chore: restart the repository with a clean history
CI / Docker image (push) Successful in 12s
CI / Server (push) Successful in 25s
CI / CLI (push) Successful in 13s
Development image / Development image (push) Successful in 21s
CI / CLI (windows) (push) Successful in 57s
CI / CLI (linux-arm64, static) (push) Successful in 1m37s
Release / Prepare release (push) Successful in 2s
Release / Server (linux-x64) (push) Successful in 53s
Release / CLI (linux-arm64, static) (push) Successful in 1m32s
Release / Docker image (push) Successful in 2m48s
Release / Server (windows-x64) (push) Successful in 6m20s
Release / CLI (windows-x64) (push) Successful in 6m48s
Release / CLI (linux-x64) (push) Successful in 7m8s
Release / Publish release (push) Successful in 1s
CI / Docker image (push) Successful in 12s
CI / Server (push) Successful in 25s
CI / CLI (push) Successful in 13s
Development image / Development image (push) Successful in 21s
CI / CLI (windows) (push) Successful in 57s
CI / CLI (linux-arm64, static) (push) Successful in 1m37s
Release / Prepare release (push) Successful in 2s
Release / Server (linux-x64) (push) Successful in 53s
Release / CLI (linux-arm64, static) (push) Successful in 1m32s
Release / Docker image (push) Successful in 2m48s
Release / Server (windows-x64) (push) Successful in 6m20s
Release / CLI (windows-x64) (push) Successful in 6m48s
Release / CLI (linux-x64) (push) Successful in 7m8s
Release / Publish release (push) Successful in 1s
Squash the tree into one commit, drop docs/architecture.html, reset the version line to 0.3.0, consolidate the changelog, enable Renovate automerge for non-major updates and add AGENTS.md.
This commit is contained in:
438 files changed
+45070
No files matched your search
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
# The data directory may come from a volume or bind mount created by an older,
|
||||
# root-running image. Take ownership of it once, then drop to the node user.
|
||||
set -e
|
||||
|
||||
if [ "$(id -u)" = "0" ]; then
|
||||
mkdir -p /app/data
|
||||
chown -R node:node /app/data 2>/dev/null || true
|
||||
exec su-exec node "$@"
|
||||
fi
|
||||
|
||||
exec "$@"
|
||||
@@ -0,0 +1,28 @@
|
||||
[Unit]
|
||||
Description=frislit server
|
||||
Documentation=https://git.fristy.net/fristy/frislit
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=frislit
|
||||
Group=frislit
|
||||
WorkingDirectory=/var/lib/frislit-server
|
||||
EnvironmentFile=-/etc/frislit-server/server.env
|
||||
Environment=NODE_ENV=production
|
||||
Environment=FRISLIT_DATA_DIR=/var/lib/frislit-server
|
||||
Environment=FRISLIT_CONFIG=/etc/frislit-server/config.yml
|
||||
ExecStart=/usr/bin/frislit-server
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
||||
NoNewPrivileges=yes
|
||||
PrivateTmp=yes
|
||||
ProtectSystem=full
|
||||
ProtectHome=yes
|
||||
ReadWritePaths=/var/lib/frislit-server
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,10 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=frislit
|
||||
Comment=Share local ports through your own frislit server
|
||||
Exec=/usr/bin/frislit gui %u
|
||||
Icon=frislit
|
||||
Terminal=false
|
||||
StartupWMClass=dev.frislit.cli
|
||||
MimeType=x-scheme-handler/frislit;
|
||||
Categories=Network;Utility;
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 9.6 KiB |
@@ -0,0 +1,7 @@
|
||||
<svg width="398" height="458" viewBox="57 27 398 458" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M96 366V226A160 160 0 0 1 416 226V366"
|
||||
stroke="#0D9488" stroke-width="62" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M196 374V226A60 60 0 0 1 316 226V374"
|
||||
stroke="#0D9488" stroke-opacity="0.45" stroke-width="46" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M150 446H362" stroke="#0D9488" stroke-width="62" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 533 B |
@@ -0,0 +1,56 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
API="https://git.fristy.net/api/v1/repos/fristy/frislit/releases/latest"
|
||||
BASE="https://git.fristy.net/fristy/frislit/releases/download"
|
||||
|
||||
say() { printf ' %s\n' "$*"; }
|
||||
fail() { printf 'frislit: %s\n' "$*" >&2; exit 1; }
|
||||
have() { command -v "$1" >/dev/null 2>&1; }
|
||||
|
||||
os=$(uname -s)
|
||||
arch=$(uname -m)
|
||||
|
||||
case "$arch" in
|
||||
x86_64|amd64) arch=x64 ;;
|
||||
aarch64|arm64) arch=arm64 ;;
|
||||
*) fail "unsupported architecture: $arch. frislit ships for x86-64 and ARM64." ;;
|
||||
esac
|
||||
|
||||
[ "$os" = "Linux" ] || fail "unsupported operating system: $os. Build from source: https://git.fristy.net/fristy/frislit"
|
||||
|
||||
fetch() {
|
||||
if have curl; then curl -fsSL "$1" -o "$2"
|
||||
elif have wget; then wget -qO "$2" "$1"
|
||||
else fail "curl or wget is required"
|
||||
fi
|
||||
}
|
||||
|
||||
if [ "$(id -u)" -eq 0 ]; then SUDO=""; elif have sudo; then SUDO="sudo"; else SUDO=""; fi
|
||||
|
||||
printf '\n frislit installer (%s %s)\n\n' "$os" "$arch"
|
||||
|
||||
tag=$(fetch "$API" /dev/stdout 2>/dev/null | sed -n 's/.*"tag_name":"\([^"]*\)".*/\1/p' | head -1)
|
||||
[ -n "$tag" ] || fail "could not read the latest release from $API"
|
||||
|
||||
asset="frislit-linux-$arch"
|
||||
say "Downloading $tag/$asset"
|
||||
tmp=$(mktemp)
|
||||
fetch "$BASE/$tag/$asset" "$tmp"
|
||||
chmod +x "$tmp"
|
||||
|
||||
if [ -w /usr/local/bin ] || [ -n "$SUDO" ]; then
|
||||
$SUDO install -m 755 "$tmp" /usr/local/bin/frislit
|
||||
target=/usr/local/bin/frislit
|
||||
else
|
||||
mkdir -p "$HOME/.local/bin"
|
||||
install -m 755 "$tmp" "$HOME/.local/bin/frislit"
|
||||
target="$HOME/.local/bin/frislit"
|
||||
case ":$PATH:" in *":$HOME/.local/bin:"*) ;; *) say "Add $HOME/.local/bin to your PATH" ;; esac
|
||||
fi
|
||||
rm -f "$tmp"
|
||||
|
||||
printf '\n Installed %s\n\n' "$target"
|
||||
if have frislit; then say "$(frislit --version)"; else say "Open a new terminal to use frislit."; fi
|
||||
say "Next: frislit login"
|
||||
printf '\n'
|
||||
@@ -0,0 +1,38 @@
|
||||
$ErrorActionPreference = "Stop"
|
||||
$Api = "https://git.fristy.net/api/v1/repos/fristy/frislit/releases/latest"
|
||||
|
||||
$arch = switch ($env:PROCESSOR_ARCHITECTURE) {
|
||||
"AMD64" { "x64" }
|
||||
"ARM64" { "arm64" }
|
||||
default { Write-Error "unsupported architecture: $($env:PROCESSOR_ARCHITECTURE). frislit for Windows ships for x86-64 and ARM64."; exit 1 }
|
||||
}
|
||||
|
||||
$release = Invoke-RestMethod -Uri $Api -UseBasicParsing
|
||||
$base = "https://git.fristy.net/fristy/frislit/releases/download/$($release.tag_name)"
|
||||
|
||||
Write-Host ""
|
||||
Write-Host " frislit installer (windows $arch)"
|
||||
Write-Host ""
|
||||
|
||||
$msi = Join-Path $env:TEMP "frislit-$arch.msi"
|
||||
Write-Host " Downloading frislit-$arch.msi ($($release.tag_name))"
|
||||
Invoke-WebRequest -Uri "$base/frislit-$arch.msi" -OutFile $msi -UseBasicParsing
|
||||
|
||||
$setup = Start-Process msiexec.exe -ArgumentList "/i", "`"$msi`"", "/passive", "/norestart" -Wait -PassThru
|
||||
Remove-Item $msi -ErrorAction SilentlyContinue
|
||||
|
||||
if ($setup.ExitCode -ne 0) {
|
||||
Write-Host " The installer did not finish (exit code $($setup.ExitCode)), installing the plain binary instead"
|
||||
$dir = Join-Path $env:LOCALAPPDATA "Programs\frislit"
|
||||
New-Item -ItemType Directory -Force -Path $dir | Out-Null
|
||||
Invoke-WebRequest -Uri "$base/frislit-windows-$arch.exe" -OutFile (Join-Path $dir "frislit.exe") -UseBasicParsing
|
||||
$path = [Environment]::GetEnvironmentVariable("Path", "User")
|
||||
if (($path -split ";") -notcontains $dir) {
|
||||
[Environment]::SetEnvironmentVariable("Path", "$path;$dir", "User")
|
||||
}
|
||||
Write-Host " Installed $dir\frislit.exe"
|
||||
}
|
||||
|
||||
Write-Host ""
|
||||
Write-Host " Installed. Open a new terminal and run: frislit login"
|
||||
Write-Host ""
|
||||
@@ -0,0 +1,18 @@
|
||||
name: frislit-cli
|
||||
arch: "${PKG_ARCH}"
|
||||
platform: linux
|
||||
version: "${PKG_VERSION}"
|
||||
section: net
|
||||
priority: optional
|
||||
maintainer: "Mathias Wagner <mathias@gnm.dev>"
|
||||
description: |
|
||||
frislit CLI - shares a local port through your own frislit server
|
||||
vendor: "frislit"
|
||||
homepage: "https://git.fristy.net/fristy/frislit"
|
||||
license: "MIT"
|
||||
|
||||
contents:
|
||||
- src: stage/cli/frislit
|
||||
dst: /usr/bin/frislit
|
||||
file_info:
|
||||
mode: 0755
|
||||
@@ -0,0 +1,45 @@
|
||||
name: frislit-cli
|
||||
arch: "${PKG_ARCH}"
|
||||
platform: linux
|
||||
version: "${PKG_VERSION}"
|
||||
section: net
|
||||
priority: optional
|
||||
maintainer: "Mathias Wagner <mathias@gnm.dev>"
|
||||
description: |
|
||||
frislit CLI - shares a local port through your own frislit server
|
||||
vendor: "frislit"
|
||||
homepage: "https://git.fristy.net/fristy/frislit"
|
||||
license: "MIT"
|
||||
|
||||
overrides:
|
||||
deb:
|
||||
depends:
|
||||
- libc6 (>= 2.35)
|
||||
rpm:
|
||||
depends:
|
||||
- glibc >= 2.35
|
||||
|
||||
contents:
|
||||
- src: stage/cli/frislit
|
||||
dst: /usr/bin/frislit
|
||||
file_info:
|
||||
mode: 0755
|
||||
|
||||
- src: packaging/frislit.desktop
|
||||
dst: /usr/share/applications/frislit.desktop
|
||||
file_info:
|
||||
mode: 0644
|
||||
|
||||
- src: packaging/frislit.svg
|
||||
dst: /usr/share/icons/hicolor/scalable/apps/frislit.svg
|
||||
file_info:
|
||||
mode: 0644
|
||||
|
||||
- src: packaging/frislit.png
|
||||
dst: /usr/share/icons/hicolor/256x256/apps/frislit.png
|
||||
file_info:
|
||||
mode: 0644
|
||||
|
||||
scripts:
|
||||
postinstall: packaging/scripts/cli-postinstall.sh
|
||||
postremove: packaging/scripts/cli-postremove.sh
|
||||
@@ -0,0 +1,47 @@
|
||||
name: frislit-server
|
||||
arch: "${PKG_ARCH}"
|
||||
platform: linux
|
||||
version: "${PKG_VERSION}"
|
||||
section: net
|
||||
priority: optional
|
||||
maintainer: "Mathias Wagner <mathias@gnm.dev>"
|
||||
description: |
|
||||
frislit server - tunnel server with the web interface bundled in
|
||||
vendor: "frislit"
|
||||
homepage: "https://git.fristy.net/fristy/frislit"
|
||||
license: "MIT"
|
||||
|
||||
overrides:
|
||||
deb:
|
||||
depends:
|
||||
- libc6
|
||||
rpm:
|
||||
depends:
|
||||
- glibc
|
||||
|
||||
contents:
|
||||
- src: stage/server/frislit-server
|
||||
dst: /usr/bin/frislit-server
|
||||
file_info:
|
||||
mode: 0755
|
||||
|
||||
- src: packaging/frislit-server.service
|
||||
dst: /lib/systemd/system/frislit-server.service
|
||||
file_info:
|
||||
mode: 0644
|
||||
|
||||
- src: packaging/server.env
|
||||
dst: /etc/frislit-server/server.env
|
||||
type: config|noreplace
|
||||
file_info:
|
||||
mode: 0640
|
||||
|
||||
- dst: /var/lib/frislit-server
|
||||
type: dir
|
||||
file_info:
|
||||
mode: 0750
|
||||
|
||||
scripts:
|
||||
postinstall: packaging/scripts/server-postinstall.sh
|
||||
preremove: packaging/scripts/server-preremove.sh
|
||||
postremove: packaging/scripts/server-postremove.sh
|
||||
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
if command -v update-desktop-database >/dev/null 2>&1; then
|
||||
update-desktop-database /usr/share/applications >/dev/null 2>&1 || true
|
||||
fi
|
||||
|
||||
if command -v gtk-update-icon-cache >/dev/null 2>&1; then
|
||||
gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor >/dev/null 2>&1 || true
|
||||
fi
|
||||
|
||||
exit 0
|
||||
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
if command -v update-desktop-database >/dev/null 2>&1; then
|
||||
update-desktop-database /usr/share/applications >/dev/null 2>&1 || true
|
||||
fi
|
||||
|
||||
if command -v gtk-update-icon-cache >/dev/null 2>&1; then
|
||||
gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor >/dev/null 2>&1 || true
|
||||
fi
|
||||
|
||||
exit 0
|
||||
@@ -0,0 +1,29 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
if ! getent group frislit >/dev/null 2>&1; then
|
||||
groupadd --system frislit
|
||||
fi
|
||||
if ! getent passwd frislit >/dev/null 2>&1; then
|
||||
useradd --system --gid frislit --home-dir /var/lib/frislit-server \
|
||||
--shell /usr/sbin/nologin --comment "frislit" frislit
|
||||
fi
|
||||
|
||||
mkdir -p /var/lib/frislit-server
|
||||
chown -R frislit:frislit /var/lib/frislit-server
|
||||
chmod 0750 /var/lib/frislit-server
|
||||
|
||||
mkdir -p /etc/frislit-server
|
||||
chown root:frislit /etc/frislit-server
|
||||
chmod 0750 /etc/frislit-server
|
||||
if [ -f /etc/frislit-server/server.env ]; then
|
||||
chown root:frislit /etc/frislit-server/server.env
|
||||
chmod 0640 /etc/frislit-server/server.env
|
||||
fi
|
||||
|
||||
if command -v systemctl >/dev/null 2>&1; then
|
||||
systemctl daemon-reload || true
|
||||
systemctl enable frislit-server.service || true
|
||||
fi
|
||||
|
||||
exit 0
|
||||
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
if command -v systemctl >/dev/null 2>&1; then
|
||||
systemctl daemon-reload || true
|
||||
fi
|
||||
|
||||
exit 0
|
||||
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
if command -v systemctl >/dev/null 2>&1; then
|
||||
systemctl stop frislit-server.service 2>/dev/null || true
|
||||
systemctl disable frislit-server.service 2>/dev/null || true
|
||||
fi
|
||||
|
||||
exit 0
|
||||
@@ -0,0 +1,13 @@
|
||||
# Settings for the frislit server. Everything here is optional: the guided setup
|
||||
# in the browser writes what it needs into the database.
|
||||
#
|
||||
# FRISLIT_BASE_DOMAIN=frislit.example.com
|
||||
# FRISLIT_PUBLIC_URL=https://frislit.example.com
|
||||
#
|
||||
# "proxy" if nginx or Caddy terminates TLS in front of frislit, "acme" to let
|
||||
# frislit hold its own certificate and serve 443 itself.
|
||||
# FRISLIT_TLS_MODE=proxy
|
||||
# FRISLIT_TRUST_PROXY=true
|
||||
#
|
||||
# FRISLIT_PORT=8080
|
||||
# LOG_LEVEL=info
|
||||
@@ -0,0 +1,68 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
|
||||
<Package Name="frislit"
|
||||
Manufacturer="Mathias Wagner"
|
||||
Version="$(var.Version)"
|
||||
UpgradeCode="25C6FFA8-2E57-4A0F-9B5D-715345435853"
|
||||
Scope="perMachine"
|
||||
Compressed="yes">
|
||||
|
||||
<SummaryInformation Description="frislit" Manufacturer="Mathias Wagner" />
|
||||
|
||||
<MajorUpgrade DowngradeErrorMessage="A newer version of frislit is already installed." />
|
||||
<MediaTemplate EmbedCab="yes" />
|
||||
|
||||
<Property Id="ARPURLINFOABOUT" Value="https://git.fristy.net/fristy/frislit" />
|
||||
<Property Id="ARPPRODUCTICON" Value="frislit.exe" />
|
||||
<Icon Id="frislit.exe" SourceFile="$(var.BinPath)" />
|
||||
|
||||
<StandardDirectory Id="ProgramFiles64Folder">
|
||||
<Directory Id="INSTALLFOLDER" Name="frislit" />
|
||||
</StandardDirectory>
|
||||
<StandardDirectory Id="ProgramMenuFolder" />
|
||||
|
||||
<Feature Id="Main" Title="frislit" Level="1">
|
||||
<ComponentGroupRef Id="Components" />
|
||||
</Feature>
|
||||
|
||||
<ComponentGroup Id="Components" Directory="INSTALLFOLDER">
|
||||
<Component Id="Executable">
|
||||
<File Id="FrislitExe" Name="frislit.exe" Source="$(var.BinPath)" KeyPath="yes" />
|
||||
|
||||
<Environment Id="FrislitPath"
|
||||
Name="PATH"
|
||||
Value="[INSTALLFOLDER]"
|
||||
Action="set"
|
||||
Part="last"
|
||||
System="yes"
|
||||
Permanent="no" />
|
||||
</Component>
|
||||
|
||||
<Component Id="StartMenuShortcut">
|
||||
<RegistryValue Root="HKLM" Key="Software\frislit" Name="StartMenu" Type="integer" Value="1" KeyPath="yes" />
|
||||
<Shortcut Id="FrislitShortcut"
|
||||
Directory="ProgramMenuFolder"
|
||||
Name="frislit"
|
||||
Description="Share local ports through your own frislit server"
|
||||
Target="[INSTALLFOLDER]frislit.exe"
|
||||
Arguments="gui"
|
||||
WorkingDirectory="INSTALLFOLDER"
|
||||
Icon="frislit.exe" />
|
||||
</Component>
|
||||
|
||||
<Component Id="UrlScheme">
|
||||
<RegistryKey Root="HKLM" Key="Software\Classes\frislit">
|
||||
<RegistryValue Type="string" Value="URL:frislit" KeyPath="yes" />
|
||||
<RegistryValue Name="URL Protocol" Type="string" Value="" />
|
||||
</RegistryKey>
|
||||
<RegistryKey Root="HKLM" Key="Software\Classes\frislit\DefaultIcon">
|
||||
<RegistryValue Type="string" Value="[INSTALLFOLDER]frislit.exe,0" />
|
||||
</RegistryKey>
|
||||
<RegistryKey Root="HKLM" Key="Software\Classes\frislit\shell\open\command">
|
||||
<RegistryValue Type="string"
|
||||
Value=""[INSTALLFOLDER]frislit.exe" gui "%1"" />
|
||||
</RegistryKey>
|
||||
</Component>
|
||||
</ComponentGroup>
|
||||
</Package>
|
||||
</Wix>
|
||||
Reference in new issue
Block a user