{#if loading}

Loading…

{:else if notFound} {#snippet title()}{notFound}{/snippet} {#snippet actions()}{/snippet} {:else if phase === "progress" && apply}
{#if apply.state === "queued"}Waiting for another change to finish.{:else if apply.state === "watching"}Watching health checks.{:else if apply.state === "kept"}Kept. {apply.reason?.message}{:else if apply.state === "reverted"}Reverted. {apply.reason?.message}{:else if apply.state === "failed"}Not applied. {apply.reason?.message}{/if}
{#if apply.state === "kept"} {#snippet title()}kept {apply?.hosts[0] ?? name} {apply?.kind === "remove" ? "is removed." : "is live."}{/snippet} {(apply.reason?.message ?? "").replace(/^\S+ is (live|removed)\.\s*/, "")}{#if apply.commit_short} Saved as commit {apply.commit_short}{apply.push?.state === "pushed" ? " and pushed to Gitea" : ""}.{/if} {:else if apply.state === "reverted" || apply.state === "failed"} {@const parts = firstSentence(apply.reason?.message ?? "")} {#snippet title()}{apply?.state === "failed" ? "not applied" : "reverted"} {parts[0]}{/snippet} {#if parts[1]}Reason: {parts[1]}{/if} {#snippet actions()} {#if reasonOffer} {/if} {/snippet} {#if apply.reason?.detail}
{/if}

Your form is kept. History records the attempt as {apply.state === "failed" ? "not applied" : "reverted"}.

{:else if apply.state === "needs_attention"} {#snippet title()}Ianitor could not undo a failed change.{/snippet}{apply.reason?.message} {#if restoreProblem}

{restoreProblem}

{/if} {#snippet actions()} {#if app.overview?.undo?.target}{/if} {/snippet}
{/if} {:else}
{#if summary}{/if} {#if conflict} {#snippet title()}{conflict?.message}{/snippet} {#snippet actions()}{#if hostname}{/if}{/snippet} {/if} {#if topError} {#snippet title()}{sentence(topError)}{/snippet} {#if topError.body.detail}
{/if} {/if}
blur("hostname")}> {#if errAt("hostname") && touched["hostname"] && errAt("hostname").params?.suggestion}
{/if}
{#each host.upstreams as _, i (i)} {@const f = `upstreams[${i}]`} {@const err = errAt(f) ?? (i === 0 ? errAt("upstreams") : undefined)} {@const shown = err && (touched[f] || touched["upstreams"])}
blur(f)}>
0} bind:value={host.upstreams[i]} spellcheck={false} inputmode="url" autocomplete="off" {...seal(f)} error={shown ? err.message : undefined} hint={i === 0 && host.upstreams.length === 1 ? "Add another address later for a second server." : undefined} />
{#if i > 0}{/if}
{#if shown && err.params?.suggestion}
{/if}
{/each}

Domi for home devices only; Let's Encrypt for a public site.

{#if !signinOk}

Sign-in is not set up on this server yet, so choose Anyone for now. To set it up, add the Authelia address to ianitor.toml in the routes repository.

{/if} {#if errAt("auth")}

{errAt("auth").message}

{/if}
{#if more}
Health check

Ianitor asks this address regularly and shows the result on the main screen.

{#if host.hc}
blur("health_check.path")}>
blur("health_check.interval_secs")} /> seconds
{#if errAt("health_check.interval_secs")}

{errAt("health_check.interval_secs").message}

{/if}
{/if}
Websockets

Live updates for apps like Home Assistant. Leave on unless you know the app does not need them.

Share links

Lets you make links that open this host without signing in, until they expire.

{#if shareWarning}

Anyone can already open {name}, so a share link changes nothing.

{/if}
Device certificates

Phones, computers and apps need a certificate from Certificates before they can open it.

On keeps a log on this server, with visitor addresses shortened.

{#each [{ list: "request_headers", rules: host.req, title: "Header rules sent to your service", secrets: true }, { list: "response_headers", rules: host.resp, title: "Header rules sent back to visitors", secrets: false }] as group (group.list)}
{group.title} {#each group.rules as r, i (i)} {@const p = `${group.list}[${i}]`}
blur(p + ".name")}>
{#if r.action === "set"} {#if group.secrets} {/if} {#if r.kind === "secret" && group.secrets}