This commit refactors the CryptPad Kubernetes installer to be more dynamic and configurable structure. Key changes include: - **Dynamic Configuration**: The installer now generates its configuration based on parameters passed from the `.vsh` script, with sensible defaults for any unspecifie d values. - **Templated `config.js`**: Introduced a new `config.js` template to allow for greater flexibility and easier maintenance of the CryptPad configuration. - **Improved Code Structure**: The source code has been updated to be more modular and maintainable. - **Updated Documentation**: The `README.md` has been updated to include instructions on how to run the installer and customize the installation. Co-authored-by: Mahmoud-Emad <mahmmoud.hassanein@gmail.com>
16 lines
432 B
JavaScript
16 lines
432 B
JavaScript
module.exports = {
|
|
httpUnsafeOrigin: 'https://@{config_values.hostname}.gent01.grid.tf',
|
|
httpSafeOrigin: 'https://@{config_values.hostname}sb.gent01.grid.tf',
|
|
httpAddress: '0.0.0.0',
|
|
httpPort: 80,
|
|
|
|
websocketPort: 3003,
|
|
websocketPath: '/cryptpad_websocket',
|
|
|
|
blockPath: './block',
|
|
blobPath: './blob',
|
|
dataPath: './data',
|
|
filePath: './datastore',
|
|
logToStdout: true,
|
|
logLevel: 'info',
|
|
}; |