feat: rebranded from vpn-router to linux-manager.
This commit is contained in:
1 parent
8efe21bfa6
commit
85a1ffa21f
238 files changed
+5010
-3761
No files matched your search
@@ -13,7 +13,7 @@ export const PUBLISH_LABELS: Record<string, string> = {
|
||||
'https-default': 'HTTPS on port 443, served by Caddy',
|
||||
}
|
||||
|
||||
/** The name of an issuing CA or a template, as the router accepts it. */
|
||||
/** The name of an issuing CA or a template, as the server accepts it. */
|
||||
export const NAME_PATTERN = /^[a-z][a-z0-9-]{0,30}$/
|
||||
|
||||
/** The names the issuing CAs of pki.issuing_cas cannot have. */
|
||||
@@ -22,7 +22,7 @@ export const RESERVED = ['root', 'p2s', 's2s']
|
||||
/** The longest common name of a CA, in characters. */
|
||||
const CA_NAME_MAX = 64
|
||||
|
||||
/** The longest lifetime the router accepts, in days. */
|
||||
/** The longest lifetime the server accepts, in days. */
|
||||
const DAYS_MAX = 36500
|
||||
|
||||
/** A new template's options. */
|
||||
@@ -41,11 +41,11 @@ export function daysProblem(value: number) {
|
||||
}
|
||||
|
||||
/**
|
||||
* A dialog that edits the router's pki section but the general-purpose issuing CAs, the templates and the custom
|
||||
* A dialog that edits the server's pki section but the general-purpose issuing CAs, the templates and the custom
|
||||
* extended key usages, which IssuingCaDialog, TemplateDialog and EkuDialog edit: the names, lifetimes and key type of
|
||||
* the CAs, the validity of the CRLs and
|
||||
* where certificates and CRLs are published. The router applies the names, lifetimes and key type when it creates a
|
||||
* CA. onSave sends the settings; the dialog closes when it succeeds and shows the router's message when it fails.
|
||||
* where certificates and CRLs are published. The server applies the names, lifetimes and key type when it creates a
|
||||
* CA. onSave sends the settings; the dialog closes when it succeeds and shows the server's message when it fails.
|
||||
*/
|
||||
export default function PkiSettingsDialog(props: {
|
||||
pki: Pki
|
||||
@@ -87,7 +87,7 @@ export default function PkiSettingsDialog(props: {
|
||||
<Stack sx={{ gap: 2, pt: 1 }}>
|
||||
{error && <Alert severity="error" sx={{ whiteSpace: 'pre-line' }}>{error}</Alert>}
|
||||
<Typography variant="body2" color="text.secondary">
|
||||
Names, lifetimes and the key type apply when the router creates a CA; URLs apply to the certificates signed afterwards.
|
||||
Names, lifetimes and the key type apply when the server creates a CA; URLs apply to the certificates signed afterwards.
|
||||
</Typography>
|
||||
<Typography variant="subtitle2">CAs</Typography>
|
||||
{(['root', 'p2s', 's2s'] as const).map((name) => {
|
||||
@@ -144,7 +144,7 @@ export default function PkiSettingsDialog(props: {
|
||||
type="number"
|
||||
value={settings.root_crl_days}
|
||||
error={daysProblem(settings.root_crl_days) !== ''}
|
||||
helperText={daysProblem(settings.root_crl_days) || 'When the router signs it, with the root key on the router.'}
|
||||
helperText={daysProblem(settings.root_crl_days) || 'When the server signs it, with the root key on the server.'}
|
||||
onChange={(event) => change({ root_crl_days: number(event.target.value) })}
|
||||
/>
|
||||
</Stack>
|
||||
|
||||
Reference in new issue
Block a user