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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ Your browser opens to `http://localhost:5444`. Click **Sign in** and use:

That's it. You have a working Solid pod with a passkey-capable identity provider, a tiny built-in data browser, and a [WebID](https://www.w3.org/2005/Incubator/webid/spec) you can point any Solid app at.

> jspod binds to `127.0.0.1` by default so the placeholder `me` / `me` credentials are reachable only from your local machine.
> jspod binds to `localhost` by default so the placeholder `me` / `me` credentials are reachable only from your local machine.

## CLI options

```
-p, --port <number> Port to listen on (default: 5444)
-h, --host <address> Host to bind to (default: 127.0.0.1)
-h, --host <address> Host to bind to (default: localhost)
-r, --root <path> Data directory (default: ./pod-data)
--multiuser Enable multi-user mode (registration enabled)
--no-auth Open pod, no IDP, no ACL (demos / dev only)
Expand Down
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function formatUrl(host, port) {
const args = process.argv.slice(2);
const options = {
port: 5444,
host: '127.0.0.1',
host: 'localhost',
root: './pod-data',
multiuser: false,
auth: true,
Expand All @@ -47,7 +47,7 @@ const options = {
// Auth-ladder rung-1 credentials. See issue #6: jspod ships a deliberately
// weak default sign-in so the new user is on a working pod within seconds,
// with a clearly-marked path to climb (change password / add a passkey).
// Safe because the default host is localhost-only (127.0.0.1).
// Safe because the default host is localhost-only.
// Username is fixed by JSS for root pods (server.js:970). Password defaults
// to 'me' but can be overridden via JSS_SINGLE_USER_PASSWORD so the env
// override documented in the README actually takes effect (and the banner
Expand Down Expand Up @@ -129,7 +129,7 @@ for (let i = 0; i < args.length; i++) {
console.log(chalk.yellow(' jspod') + chalk.dim(' [options]\n'));
console.log(chalk.white('Options:'));
console.log(chalk.green(' -p, --port ') + chalk.yellow('<number>') + chalk.dim(' Port to listen on (default: 5444)'));
console.log(chalk.green(' -h, --host ') + chalk.yellow('<address>') + chalk.dim(' Host to bind to (default: 127.0.0.1)'));
console.log(chalk.green(' -h, --host ') + chalk.yellow('<address>') + chalk.dim(' Host to bind to (default: localhost)'));
console.log(chalk.green(' -r, --root ') + chalk.yellow('<path>') + chalk.dim(' Data directory (default: ./pod-data)'));
console.log(chalk.green(' --multiuser') + chalk.dim(' Enable multi-user mode'));
console.log(chalk.green(' --no-auth') + chalk.dim(' Disable authentication'));
Expand Down Expand Up @@ -316,7 +316,7 @@ if (options.auth && !options.multiuser) {
console.log('\n' + chalk.bold.red('⚠ Warning: ') + chalk.yellow(
`--host ${options.host} exposes the well-known me/me credentials beyond localhost.`
));
console.log(chalk.dim(' Set JSS_SINGLE_USER_PASSWORD=... before running, or bind to 127.0.0.1.'));
console.log(chalk.dim(' Set JSS_SINGLE_USER_PASSWORD=... before running, or bind to localhost.'));
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jspod",
"version": "0.0.23",
"version": "0.0.24",
"description": "JavaScript Solid Pod - Just works, batteries included",
"type": "module",
"main": "index.js",
Expand Down