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
2 changes: 1 addition & 1 deletion docs/desktop-cloud-account.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ updates the sidebar account, and returns focus after completion. Services withou
this capability retain their existing native login controls.
The account entry is a compact avatar icon beside Settings in the sidebar footer;
its hover text and accessible description retain the account name and state.
The service address defaults to `https://115.159.45.55` and remains editable for
The service address defaults to `https://codeshell.site` and remains editable for
self-hosted deployments. Prefilling it does not initiate an account connection;
the selected server must expose the account API before sign-in is available.
Opening the account form checks the selected service's public sign-in capabilities.
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop/scripts/owned-account-discovery.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
const { EventEmitter } = require("node:events");
const { Readable } = require("node:stream");

const DEFAULT_ACCOUNT_ORIGIN = "https://115.159.45.55";
const DEFAULT_ACCOUNT_ORIGIN = "https://codeshell.site";
const STATUS_URL = `${DEFAULT_ACCOUNT_ORIGIN}/api/v1/account/status`;
const STATUS_BODY = JSON.stringify({
registrationAllowed: false,
Expand Down
9 changes: 5 additions & 4 deletions packages/desktop/scripts/owned-account-discovery.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { fileURLToPath, pathToFileURL } from "node:url";
import { build } from "esbuild";
import { withOwnedAccountDiscovery } from "./owned-account-discovery.cjs";

const origin = "https://115.159.45.55";
const origin = "https://codeshell.site";
const url = `${origin}/api/v1/account/status`;
const options = () => ({ method: "GET", headers: { Origin: origin, Accept: "application/json" } });
function fixture() {
Expand Down Expand Up @@ -65,8 +65,9 @@ test("all other targets, request methods and credentials still invoke the origin
[url + "?next=/", options()],
[url + "#fragment", options()],
[url.replace("https:", "http:"), options()],
[url.replace("115.159.45.55", "127.0.0.1"), options()],
[url.replace("115.159.45.55", "115.159.45.55.example.invalid"), options()],
[url.replace("codeshell.site", "127.0.0.1"), options()],
[url.replace("codeshell.site", "115.159.45.55"), options()],
[url.replace("codeshell.site", "codeshell.site.example.invalid"), options()],
[url.replace("/status", "/login"), options()],
[url.replace("/status", "/overview"), options()],
[url.replace("https://", "https://user:pass@"), options()],
Expand All @@ -76,7 +77,7 @@ test("all other targets, request methods and credentials still invoke the origin
[url, { ...options(), path: "/other" }],
[url, { ...options(), host: "untrusted.invalid" }],
[url, { ...options(), ca: "other" }],
[{ hostname: "115.159.45.55", path: "/api/v1/account/status" }, options()],
[{ hostname: "codeshell.site", path: "/api/v1/account/status" }, options()],
...["Authorization", "authorization", "Cookie", "Proxy-Authorization"].map((name) => [
url,
{ ...options(), headers: { ...options().headers, [name]: "private" } },
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop/src/shared/cloud-account.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** Public account state. Tokens and OAuth receipts never cross the preload bridge. */
export const DEFAULT_CLOUD_ACCOUNT_ORIGIN = "https://115.159.45.55";
export const DEFAULT_CLOUD_ACCOUNT_ORIGIN = "https://codeshell.site";

export type * from "@cjhyy/code-shell-server/account";
2 changes: 1 addition & 1 deletion packages/server/src/account/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { AccountFeatureMap } from "@cjhyy/code-shell-web/account";
/** Public account state. Tokens and OAuth receipts never cross the preload bridge. */
export const DEFAULT_CLOUD_ACCOUNT_ORIGIN = "https://115.159.45.55";
export const DEFAULT_CLOUD_ACCOUNT_ORIGIN = "https://codeshell.site";

export interface CloudAccountIdentity {
id: string;
Expand Down
Loading