-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
207 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "community-server-configuration-generator", | ||
"version": "6.0.0", | ||
"version": "7.0.0", | ||
"description": "Generates configurations for the Community Solid Server", | ||
"author": "Joachim Van Herwegen <[email protected]>", | ||
"license": "MIT", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { Choice } from '../Choice'; | ||
|
||
/** | ||
* Allow registration on the server. | ||
*/ | ||
export const ACCOUNTS = { | ||
id: 'accounts', | ||
label: 'Accounts', | ||
description: `Everything related to account management. | ||
The two final options still enable account management, but disable certain features for users. | ||
</p><p class="text-danger"><i class="bi bi-exclamation-triangle me-1"></i> | ||
If this is enabled anyone will be able to create new pods on your server.`, | ||
options: [ | ||
{ value: 'default', label: 'Enabled'}, | ||
{ value: 'disabled', label: 'Disabled'}, | ||
{ value: 'no-accounts', label: 'No new accounts'}, | ||
{ value: 'no-pods', label: 'No new pods'}, | ||
{ value: 'no-accounts-pods', label: 'No new accounts and no new pods for existing accounts'}, | ||
], | ||
default: 'default', | ||
} as const satisfies Choice<'default' | 'disabled' | 'no-accounts' | 'no-pods' | 'no-accounts-pods'>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,26 @@ | ||
import { BooleanOption, Choice, ENABLED_DISABLED, FALSE } from '../Choice'; | ||
import { Choice } from '../Choice'; | ||
|
||
/** | ||
* Initialize root as storage and fully accessible (GIVES FULL ACCESS WHICH NEEDS TO BE UPDATED). | ||
* Initialize root as storage and fully accessible (GIVES FULL ACCESS WHICH NEEDS TO BE UPDATED), | ||
* as a pod, as a static page, or as nothing. | ||
*/ | ||
export const INITIALIZE_ROOT = { | ||
id: 'initializeRoot', | ||
label: 'Initialize root', | ||
description: `Makes the root of the server accessible for reading and writing data. | ||
Enabling this will create the relevant authorization resources in the root that allow this. | ||
description: `Determines what needs to happen with the root of the server. | ||
</p><p class="text-danger"><i class="bi bi-exclamation-triangle me-1"></i> | ||
These authorization resources provide full access to everyone so make sure to immediately update these. | ||
The "Root pod" option creates a pod in the root with the email and password defined in the configuration. | ||
It is advised to immediately change this password. | ||
</p><p class="text-danger"><i class="bi bi-exclamation-triangle me-1"></i> | ||
The "Accessible root" option writes authorization resources to the root of the server, giving full access to everyone. | ||
It is advised to immediately update these after starting the server to prevent misuse. | ||
They will also not disappear after stopping the server and need to be deleted manually afterwards if you use a file system as backend. | ||
`, | ||
options: ENABLED_DISABLED, | ||
default: FALSE, | ||
} as const satisfies Choice<BooleanOption>; | ||
options: [ | ||
{ value: 'default', label: 'Inaccessible root' }, | ||
{ value: 'static-root', label: 'Static HTML page' }, | ||
{ value: 'initialize-root-pod', label: 'Root pod' }, | ||
{ value: 'initialize-root', label: 'Accessible root' }, | ||
], | ||
default: 'static-root', | ||
} as const satisfies Choice<'default' | 'static-root' | 'initialize-root-pod' | 'initialize-root'>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { BooleanOption, Choice, ENABLED_DISABLED, TRUE } from '../Choice'; | ||
|
||
/** | ||
* Enable or disable LDP. | ||
*/ | ||
export const LDP = { | ||
id: 'ldp', | ||
label: 'Solid protocol', | ||
description: `Enables support for the core Solid protocol. | ||
This can be disabled if you want a server that only handles OIDC and accounts.`, | ||
options: ENABLED_DISABLED, | ||
default: TRUE, | ||
} as const satisfies Choice<BooleanOption>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { BooleanOption, Choice, ENABLED_DISABLED, TRUE } from '../Choice'; | ||
|
||
/** | ||
* Enable or disable OIDC. | ||
*/ | ||
export const OIDC = { | ||
id: 'oidc', | ||
label: 'OpenID provider', | ||
description: `Allows the server to generate the necessary tokens and interactions for an OIDC session. | ||
You need this if you want to use the server to log in to Solid applications.`, | ||
options: ENABLED_DISABLED, | ||
default: TRUE, | ||
} as const satisfies Choice<BooleanOption>; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { BooleanOption, Choice, ENABLED_DISABLED, FALSE } from '../../Choice'; | ||
|
||
/** | ||
* The main template used for all generated HTML responses. | ||
*/ | ||
export const ACCOUNT_HTML_TEMPLATE = { | ||
id: 'accountHtmlTemplate', | ||
label: 'Account HTML pages', | ||
description: `The HTML page used when registering an email/password account on the server. | ||
All other account HTML pages can be replaced similarly by looking in the configuration where the template file occurs. | ||
All template files can be found | ||
<a href="https://github.com/CommunitySolidServer/CommunitySolidServer/tree/main/templates/identity/">here</a>.`, | ||
options: ENABLED_DISABLED, | ||
default: FALSE, | ||
} as const satisfies Choice<BooleanOption>; |
2 changes: 1 addition & 1 deletion
2
src/data/choices/ContainerIndex.ts → src/data/choices/overrides/ContainerIndex.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/data/choices/LockExpiration.ts → src/data/choices/overrides/LockExpiration.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { BooleanOption, Choice, ENABLED_DISABLED, FALSE } from '../../Choice'; | ||
|
||
/** | ||
* The main template used for all generated HTML responses. | ||
*/ | ||
export const MAIN_TEMPLATE = { | ||
id: 'mainTemplate', | ||
label: 'Main HTML template', | ||
description: `The main HTML body that is used for all HTML pages generated by the server. | ||
See the <a href="https://github.com/CommunitySolidServer/CommunitySolidServer/blob/main/templates/main.html.ejs">original</a> | ||
version to know what is expected.`, | ||
options: ENABLED_DISABLED, | ||
default: FALSE, | ||
} as const satisfies Choice<BooleanOption>; |
2 changes: 1 addition & 1 deletion
2
src/data/choices/NotificationDuration.ts → ...choices/overrides/NotificationDuration.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/data/choices/OidcConfiguration.ts → ...ta/choices/overrides/OidcConfiguration.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 8 additions & 6 deletions
14
src/data/groups/Pods.ts → src/data/groups/AccountManagement.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
import { Choice } from '../Choice'; | ||
import { ACCOUNTS } from '../choices/Accounts'; | ||
import { EMAIL } from '../choices/Email'; | ||
import { REGISTRATION } from '../choices/Registration'; | ||
import { OIDC } from '../choices/Oidc'; | ||
import { SUBDOMAIN } from '../choices/Subdomain'; | ||
import { Group } from '../Group'; | ||
|
||
export const PODS = { | ||
id: 'pods', | ||
label: 'Pod management', | ||
description: 'Everything related to registering and creating new pods on the server.', | ||
export const ACCOUNT_MANAGEMENT = { | ||
id: 'account-management', | ||
label: 'Account management', | ||
description: 'Everything related to registering and creating new accounts and pods on the server.', | ||
entries: [ | ||
REGISTRATION, | ||
ACCOUNTS, | ||
EMAIL, | ||
SUBDOMAIN, | ||
OIDC, | ||
], | ||
} as const satisfies Group<Choice>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,20 @@ | ||
import { Choice } from '../Choice'; | ||
import { AUTHORIZATION } from '../choices/Authorization'; | ||
import { BACKEND } from '../choices/Backend'; | ||
import { INTERNAL } from '../choices/Internal'; | ||
import { LDP } from '../choices/Ldp'; | ||
import { LOCKING } from '../choices/Locking'; | ||
import { Group } from '../Group'; | ||
|
||
export const DATA = { | ||
id: 'data', | ||
label: 'Data management', | ||
description: 'All options related to where data is stored.', | ||
description: 'All options related to how data is stored.', | ||
entries: [ | ||
INTERNAL, | ||
BACKEND, | ||
AUTHORIZATION, | ||
LDP, | ||
INTERNAL, | ||
LOCKING, | ||
], | ||
} as const satisfies Group<Choice>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.