Compare commits

...
2 Commits
Author SHA1 Message Date
slawek 240255b2ff fix: the copy icons of the Manager are shown only on a page opened over HTTPS, where the browser offers the clipboard.
Release / release (push) Successful in 22s
2026-11-24 20:41:04 +01:00
slawek 5c6fd90f37 update: the development VM of lm-dev-vm.py keeps plain HTTP by name.
Release / release (push) Successful in 21s
2026-11-24 19:57:53 +01:00
9 changed files with 51 additions and 22 deletions

No files matched your search

+16
View File
@@ -1,5 +1,21 @@
# Changelog
## 0.45.2 - 2026-11-24 20:41:04 +0100
fix: the copy icons of the Manager are shown only on a page opened over HTTPS, where the browser
offers the clipboard.
- The copy icons of the Addresses panel, the Remote access page and the Web Sites page, and the Copy
button of a WireGuard configuration, are left out on a page opened over plain HTTP, where they
did nothing.
## 0.45.1 - 2026-11-24 19:57:53 +0100
update: the development VM of lm-dev-vm.py keeps plain HTTP by name.
- tests/remote/configs/dev.json sets https.disable_auto_redirect, so the status page and the
Manager of the development VM answer over plain HTTP by name as well as over HTTPS.
## 0.45.0 - 2026-11-24 19:26:51 +0100
feature: HTTPS is always on, for wan.local_fqdn or, without it, the host name and its mDNS name,
+3 -2
View File
@@ -39,7 +39,8 @@ their password and, when enrolled, the code.
- The eye opens the device's configuration; the download gives `<user>-<n>.conf`, with a
placeholder for the device's private key, which the server never has.
- The remove button removes a peer after a confirmation.
- **Server:** the server's public key with a copy icon, the endpoint and the allowed IPs a device
needs; **Show config** opens a device configuration with placeholders.
- **Server:** the server's public key with a copy icon on a page opened over HTTPS, the endpoint
and the allowed IPs a device needs; **Show config** opens a device configuration with
placeholders, with a Copy button over HTTPS.
- In the configuration dialogs a switch leaves out the `[Interface]` and `PrivateKey` lines, which
WireGuard for Windows fills in for a new empty tunnel.
+5 -3
View File
@@ -11,9 +11,11 @@ The Overview tab shows the state of the server, read every 10 seconds by default
IKEv2, OpenVPN and WireGuard; and the status web service and its port.
- **Services:** the state of each of the server's systemd services and of Caddy; the chip on the
title bar tells whether the server's services are active.
- **Addresses:** links to the status page over HTTPS and over plain HTTP, and to the
Manager over HTTPS, each opening in a new tab; and the issuer and the discovery URL of the
server's OpenID Provider, each with a copy icon, or off while the provider is disabled (see
- **Addresses:** links to the status page and the Manager over HTTPS for the server's names (and
its addresses with `https.ip_sans`), and over plain HTTP: the status page by address, and both
by name and the Manager by address too while the redirect to HTTPS is off; each opens in a new
tab. Then the issuer and the discovery URL of the server's OpenID Provider, each with a copy
icon over HTTPS, or off while the provider is disabled (see
[Service accounts](service-accounts.md#openid-provider)).
- **Backup:** the result of the last run, the next run and Run now (see [Backup](backup.md)).
- **PostgreSQL:** each cluster with its main settings and its databases with their sizes.
+3 -3
View File
@@ -23,9 +23,9 @@ Collector reading the server's metrics. They cannot sign in to the Manager.
## OpenID Provider
The server can sign its users in to other systems with OpenID Connect. Its issuer and discovery
URL are on the Addresses panel of the [Overview](router.md), each with a copy icon, and while it is
enabled the title of the list has the number of its clients. It is turned on on the server as
root:
URL are on the Addresses panel of the [Overview](router.md), each with a copy icon on a page
opened over HTTPS, and while it is enabled the title of the list has the number of its clients.
It is turned on on the server as root:
```sh
linux-manager-config-edit set --restart oidc.enabled true
+2 -2
View File
@@ -8,8 +8,8 @@ and the name server of their domain on the [DNS](dns.md) page.
- **State:** whether the sites are served.
- **Largest upload:** the largest file or zip archive the Files tab and the server's API take.
- **WebDAV:** whether the folders are served over WebDAV, and its URL with a copy icon. WebDAV is
switched on the [System](system.md) tab, which installs rclone.
- **WebDAV:** whether the folders are served over WebDAV, and its URL with a copy icon over HTTPS.
WebDAV is switched on the [System](system.md) tab, which installs rclone.
**Settings** edits the state, the largest upload and the WebDAV port.
+2 -1
View File
@@ -128,7 +128,8 @@ it running. The VM is created in a project, the test project `lm-dev` by default
project's default profile, and takes its address from DHCP. It gets the package with the
administrator `admin`, whose password and TOTP token, unless `--no-otp` is given, are `password` and
`otp_url` of `.lm-dev-config/vm-<project>-<vm>.json`, and a configuration from `configs/`,
`dev.json` by default; `@ETH0@` is the interface of the VM's default route. A password or
`dev.json` by default, which keeps the status page and the Manager on plain HTTP by name too
(`https.disable_auto_redirect`); `@ETH0@` is the interface of the VM's default route. A password or
`otp_url` the file lacks, or both when there is no file, is generated and kept in the file, so a VM
made again has the same password and token; delete one from the file to have a new one made.
+2 -1
View File
@@ -1,5 +1,6 @@
{
"general": {"platform": "generic"},
"interfaces": {"external": "@ETH0@"},
"wan": {"local_fqdn": "@FQDN@"}
"wan": {"local_fqdn": "@FQDN@"},
"https": {"disable_auto_redirect": true}
}
+11 -6
View File
@@ -404,16 +404,21 @@ export function Pairs(props: { rows: [string, string | ReactNode][] }) {
)
}
/** A value in monospace for Pairs with an action icon that puts it on the clipboard; label names it in the tooltip. */
/**
* A value in monospace for Pairs with an action icon that puts it on the clipboard, shown only on a page served over
* HTTPS, where the browser offers the clipboard; label names it in the tooltip.
*/
export function Copyable(props: { value: string; label: string }) {
return (
<Stack direction="row" sx={{ alignItems: 'center', gap: 1 }}>
<Box component="span" sx={{ fontFamily: 'monospace', fontSize: 13, wordBreak: 'break-all' }}>{props.value}</Box>
<Tooltip title={`Copy the ${props.label}`}>
<IconButton size="small" aria-label={`copy the ${props.label}`} onClick={() => void navigator.clipboard.writeText(props.value)}>
<ContentCopy fontSize="small" />
</IconButton>
</Tooltip>
{window.isSecureContext && (
<Tooltip title={`Copy the ${props.label}`}>
<IconButton size="small" aria-label={`copy the ${props.label}`} onClick={() => void navigator.clipboard.writeText(props.value)}>
<ContentCopy fontSize="small" />
</IconButton>
</Tooltip>
)}
</Stack>
)
}
+7 -4
View File
@@ -14,7 +14,8 @@ const PREFILLED_LINES = 2
* device's address, its peer's IPs, or a placeholder without them (ips null). The device's private key is a
* placeholder, which the server never has; a switch leaves out the [Interface] and PrivateKey lines, which a client such
* as WireGuard for Windows fills in for a new empty tunnel, and keeps its position in the browser's settings. Copy
* puts the configuration as shown on the clipboard.
* puts the configuration as shown on the clipboard; it is shown only on a page served over HTTPS, where the browser
* offers the clipboard.
*/
export default function WireGuardConfigDialog(props: { title: string; server: WireGuardServer; ips: string[] | null; onClose: () => void }) {
const [copied, setCopied] = useState(false)
@@ -43,9 +44,11 @@ export default function WireGuardConfigDialog(props: { title: string; server: Wi
</Box>
</DialogContent>
<DialogActions>
<Button startIcon={copied ? <Check /> : <ContentCopy />} onClick={() => void navigator.clipboard.writeText(text).then(() => setCopied(true))}>
{copied ? 'Copied' : 'Copy'}
</Button>
{window.isSecureContext && (
<Button startIcon={copied ? <Check /> : <ContentCopy />} onClick={() => void navigator.clipboard.writeText(text).then(() => setCopied(true))}>
{copied ? 'Copied' : 'Copy'}
</Button>
)}
<Button variant="contained" onClick={props.onClose}>Close</Button>
</DialogActions>
</Dialog>