Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 7 additions & 25 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,27 +1,20 @@
DATABASE_URL=postgresql://user:pass@host/db?sslmode=require
DATABASE_URL_UNPOOLED=postgresql://user:pass@host/db?sslmode=require

KV_REST_API_URL=https://example.upstash.io
KV_REST_API_TOKEN=
# Self-hosted Redis (redis:// or rediss:// for TLS)
REDIS_URL=redis://localhost:6379

# Vercel Blob (snapshot agent binary)
# Vercel Blob (avatars)
BLOB_READ_WRITE_TOKEN=

# System-level Hetzner provider token used by GSM.
# Optional: Hetzner token for lib/providers (future node provisioning).
HETZNER_API_TOKEN=
# Optional: pin a golden image ID. If empty, GSM auto-manages snapshots.
HETZNER_SNAPSHOT_IMAGE_ID=

# Optional builder defaults used by provider profile.
HETZNER_BUILDER_BASE_IMAGE=docker-ce
HETZNER_BUILDER_SERVER_TYPE=cx23
HETZNER_BUILDER_LOCATION=nbg1

BOOTSTRAP_JWT_SECRET=
BETTER_AUTH_SECRET=
BETTER_AUTH_URL=http://localhost:3000

# Optional public URL override for local snapshot bakes. Use ngrok/tunnel URL.
# URL nodes use to reach the panel (written into daemon.json). Use a
# ngrok/tunnel URL in local dev so daemons can reach /api/remote/*.
NODEBYTE_PUBLIC_URL=

VERCEL_AUTOMATION_BYPASS_SECRET=
Expand All @@ -48,16 +41,5 @@ NEXT_PUBLIC_SENTRY_DSN=
SENTRY_ORG=
SENTRY_PROJECT=

# Optional local snapshot build tuning
SNAPSHOT_SKIP_FULL_UPGRADE=0
SNAPSHOT_BUILDER_MAX_WAIT_SECONDS=
SNAPSHOT_BUILDER_POLL_SECONDS=
SNAPSHOT_IMAGE_MAX_WAIT_SECONDS=
SNAPSHOT_IMAGE_POLL_SECONDS=

# Optional local git source override for snapshot compilation
NBP_GIT_REVISION=
NBP_GIT_REPO_URL=

# Optional token for private submodule access / sandbox git fetch
# Optional token for private submodule access
GIT_AUTH_TOKEN=
99 changes: 25 additions & 74 deletions .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,127 +2,78 @@

## Our Pledge

We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of experience, education, socio-economic status,
nationality, personal appearance, race, religion, or sexual identity
and orientation.
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.

We pledge to act and interact in ways that contribute to an open, welcoming,
diverse, inclusive, and healthy community.
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.

## Our Standards

Examples of behavior that contributes to a positive environment for our
community include:
Examples of behavior that contributes to a positive environment for our community include:

- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
- Focusing on what is best not just for us as individuals, but for the
overall community
- Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
- Focusing on what is best not just for us as individuals, but for the overall community

Examples of unacceptable behavior include:

- The use of sexualized language or imagery, and sexual attention or
advances of any kind
- The use of sexualized language or imagery, and sexual attention or advances of any kind
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or email
address, without their explicit permission
- Other conduct which could reasonably be considered inappropriate in a
professional setting
- Publishing others' private information, such as a physical or email address, without their explicit permission
- Other conduct which could reasonably be considered inappropriate in a professional setting

## Enforcement Responsibilities

Community leaders are responsible for clarifying and enforcing our standards of
acceptable behavior and will take appropriate and fair corrective action in
response to any behavior that they deem inappropriate, threatening, offensive,
or harmful.
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.

Community leaders have the right and responsibility to remove, edit, or reject
comments, commits, code, wiki edits, issues, and other contributions that are
not aligned to this Code of Conduct, and will communicate reasons for moderation
decisions when appropriate.
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.

## Scope

This Code of Conduct applies within all community spaces, and also applies when
an individual is officially representing the community in public spaces.
Examples of representing our community include using an official e-mail address,
posting via an official social media account, or acting as an appointed
representative at an online or offline event.
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
haydenbleasel.com/contact.
All complaints will be reviewed and investigated promptly and fairly.
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at haydenbleasel.com/contact. All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the
reporter of any incident.
All community leaders are obligated to respect the privacy and security of the reporter of any incident.

## Enforcement Guidelines

Community leaders will follow these Community Impact Guidelines in determining
the consequences for any action they deem in violation of this Code of Conduct:
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:

### 1. Correction

**Community Impact**: Use of inappropriate language or other behavior deemed
unprofessional or unwelcome in the community.
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.

**Consequence**: A private, written warning from community leaders, providing
clarity around the nature of the violation and an explanation of why the
behavior was inappropriate. A public apology may be requested.
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.

### 2. Warning

**Community Impact**: A violation through a single incident or series
of actions.
**Community Impact**: A violation through a single incident or series of actions.

**Consequence**: A warning with consequences for continued behavior. No
interaction with the people involved, including unsolicited interaction with
those enforcing the Code of Conduct, for a specified period of time. This
includes avoiding interactions in community spaces as well as external channels
like social media. Violating these terms may lead to a temporary or
permanent ban.
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.

### 3. Temporary Ban

**Community Impact**: A serious violation of community standards, including
sustained inappropriate behavior.
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.

**Consequence**: A temporary ban from any sort of interaction or public
communication with the community for a specified period of time. No public or
private interaction with the people involved, including unsolicited interaction
with those enforcing the Code of Conduct, is allowed during this period.
Violating these terms may lead to a permanent ban.
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.

### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within
the community.
**Consequence**: A permanent ban from any sort of public interaction within the community.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.0, available at
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0, available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.

Community Impact Guidelines were inspired by [Mozilla's code of conduct
enforcement ladder](https://github.com/mozilla/diversity).
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).

[homepage]: https://www.contributor-covenant.org

For answers to common questions about this code of conduct, see the FAQ at
https://www.contributor-covenant.org/faq. Translations are available at
https://www.contributor-covenant.org/translations.
For answers to common questions about this code of conduct, see the FAQ at https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
15 changes: 5 additions & 10 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,20 @@ labels: bug
assignees: ""
---

**Describe the bug**
A clear and concise description of what the bug is.
**Describe the bug** A clear and concise description of what the bug is.

**Ghost version**
I am using version ...
**Ghost version** I am using version ...

**To Reproduce**
Steps to reproduce the behavior:
**To Reproduce** Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.
**Expected behavior** A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.
**Screenshots** If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**

Expand Down
9 changes: 3 additions & 6 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@ labels: enhancement
assignees: ""
---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe the solution you'd like** A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Describe alternatives you've considered** A clear and concise description of any alternative solutions or features you've considered.
2 changes: 1 addition & 1 deletion agent
Submodule agent updated from 2f4d61 to 848692
25 changes: 15 additions & 10 deletions app/(auth)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@ import type { ReactNode } from "react";

import { createMetadata } from "@/lib/seo/metadata";
import { getSession } from "@/lib/session";
import { getBranding } from "@/lib/settings";

export const metadata = createMetadata({
description: "Sign in to NodeByte Panel.",
robots: { follow: false, index: false },
title: "Sign in",
});
export const generateMetadata = async () => {
const { panelName } = await getBranding();
return createMetadata({
description: `Sign in to ${panelName}.`,
robots: { follow: false, index: false },
siteName: panelName,
title: "Sign in",
});
};

const AuthLayout = async ({ children }: { children: ReactNode }) => {
const session = await getSession();
Expand All @@ -17,19 +22,19 @@ const AuthLayout = async ({ children }: { children: ReactNode }) => {
}

return (
<main className="relative flex min-h-screen items-center justify-center overflow-hidden bg-background px-6">
<main className="bg-background relative flex min-h-screen items-center justify-center overflow-hidden px-6">
{/* Background gradient */}
<div className="absolute inset-0 bg-linear-to-b from-primary/5 via-background to-background" />
<div className="from-primary/5 via-background to-background absolute inset-0 bg-linear-to-b" />
{/* Animated orbs */}
<div className="absolute inset-0 overflow-hidden">
<div className="absolute left-1/4 top-1/4 h-125 w-125 animate-pulse rounded-full bg-primary/10 blur-[120px]" />
<div className="bg-primary/10 absolute top-1/4 left-1/4 h-125 w-125 animate-pulse rounded-full blur-[120px]" />
<div
className="absolute bottom-1/4 right-1/4 h-100 w-100 animate-pulse rounded-full bg-accent/10 blur-[100px]"
className="bg-accent/10 absolute right-1/4 bottom-1/4 h-100 w-100 animate-pulse rounded-full blur-[100px]"
style={{ animationDelay: "1s" }}
/>
</div>
{/* Grid overlay */}
<div className="absolute inset-0 bg-[linear-gradient(rgba(255,255,255,0.015)_1px,transparent_1px),linear-gradient(90deg,rgba(255,255,255,0.015)_1px,transparent_1px)] bg-size-[64px_64px] mask-[radial-gradient(ellipse_60%_60%_at_50%_50%,black_40%,transparent_100%)]" />
<div className="absolute inset-0 bg-[linear-gradient(rgba(255,255,255,0.015)_1px,transparent_1px),linear-gradient(90deg,rgba(255,255,255,0.015)_1px,transparent_1px)] mask-[radial-gradient(ellipse_60%_60%_at_50%_50%,black_40%,transparent_100%)] bg-size-[64px_64px]" />
<div className="relative z-10 w-full max-w-sm space-y-6">{children}</div>
</main>
);
Expand Down
36 changes: 20 additions & 16 deletions app/(auth)/sign-in/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";
import { authClient, signIn } from "@/lib/auth-client";
import { useBranding } from "@/providers/branding";

const SignInPage = () => {
const { panelName, signUpEnabled } = useBranding();
const router = useRouter();
const [pending, setPending] = useState(false);
const [passkeyPending, setPasskeyPending] = useState(false);
Expand Down Expand Up @@ -81,17 +83,17 @@ const SignInPage = () => {
<div className="flex flex-col gap-6">
<div className="text-center">
<h1 className="text-2xl font-bold tracking-tight">
<span className="bg-linear-to-r from-primary via-primary to-accent bg-clip-text text-transparent">
NodeByte Panel
<span className="from-primary via-primary to-accent bg-linear-to-r bg-clip-text text-transparent">
{panelName}
</span>
</h1>
<p className="mt-1 text-sm text-muted-foreground">
<p className="text-muted-foreground mt-1 text-sm">
Sign in to your account
</p>
</div>
<form
onSubmit={handleSubmit}
className="space-y-4 rounded-2xl border border-border/50 bg-card/30 p-6 backdrop-blur-sm"
className="border-border/50 bg-card/30 space-y-4 rounded-2xl border p-6 backdrop-blur-sm"
>
<div className="space-y-2">
<Label htmlFor="email">Email</Label>
Expand All @@ -118,31 +120,33 @@ const SignInPage = () => {
</Button>
<div className="relative py-1">
<div className="absolute inset-0 flex items-center">
<span className="w-full border-t border-border/50" />
<span className="border-border/50 w-full border-t" />
</div>
<div className="relative flex justify-center text-xs uppercase">
<span className="bg-card/30 px-2 text-muted-foreground">or</span>
<span className="bg-card/30 text-muted-foreground px-2">or</span>
</div>
</div>
<Button
type="button"
variant="outline"
className="w-full border-border/50 bg-card/30 hover:border-primary/30 hover:bg-card/50"
className="border-border/50 bg-card/30 hover:border-primary/30 hover:bg-card/50 w-full"
onClick={handlePasskeySignIn}
disabled={passkeyPending}
>
<FingerprintIcon />
{passkeyPending ? "Waiting…" : "Sign in with a passkey"}
</Button>
<p className="text-center text-sm text-muted-foreground">
No account?{" "}
<Link
className="text-primary underline underline-offset-4 hover:text-primary/80"
href="/sign-up"
>
Create one
</Link>
</p>
{signUpEnabled && (
<p className="text-muted-foreground text-center text-sm">
No account?{" "}
<Link
className="text-primary hover:text-primary/80 underline underline-offset-4"
href="/sign-up"
>
Create one
</Link>
</p>
)}
</form>
</div>
);
Expand Down
Loading
Loading