https://github.com/axelrindle/nextcloud-config-generator
Generate configuration files for Nextcloud.
https://github.com/axelrindle/nextcloud-config-generator
config-generator docker kubernetes nextcloud nextcloud-config nextcloud-installation
Last synced: 2 months ago
JSON representation
Generate configuration files for Nextcloud.
- Host: GitHub
- URL: https://github.com/axelrindle/nextcloud-config-generator
- Owner: axelrindle
- License: mit
- Created: 2025-06-19T09:05:34.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-19T13:49:01.000Z (about 1 year ago)
- Last Synced: 2025-10-25T20:11:26.822Z (8 months ago)
- Topics: config-generator, docker, kubernetes, nextcloud, nextcloud-config, nextcloud-installation
- Language: Go
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nextcloud-config-generator
> Generate configuration files for Nextcloud.
A CLI tool which generates [configuration files](https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html) for Nextcloud
on the fly. Suitable for Kubernetes deployments where the [official Helm Chart](https://github.com/nextcloud/helm/tree/main/charts/nextcloud) seems unfitting or overwhelming.
## Usage
```
Usage:
nc-cfg-gen [command]
Config Generation
dynamic Generates the dynamic configuration, which may change during starts.
secrets Generates the secret values instanceid, passwordsalt and secret.
Use "nc-cfg-gen [command] --help" for more information about a command.
```
## Configuration
| Environment Variable | Description | Default | Documentation |
| ------------ | ------------ | ------------ | ------------ |
| `NC_HOST` | The primary public-facing URL | | |
| `NC_SCHEME` | | https | |
| `NC_TRUSTED_DOMAINS` | All URLs the nextcloud instance will be accessible at | | |
| `NC_DB_TYPE` | | | [`dbtype`](https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#dbtype) |
| `NC_DB_HOST` | | | [`dbhost`](https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#dbhost) |
| `NC_DB_NAME` | | | [`dbname`](https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#dbname) |
| `NC_DB_USERNAME` | | | [`dbuser`](https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#dbuser) |
| `NC_DB_PASSWORD` | | | [`dbpassword`](https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#dbpassword) |
| `NC_DB_PREFIX` | | nc_ | [`dbtableprefix`](https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#dbtableprefix) |
| `NC_DB_REPLICAS` | | | [`dbreplica`](https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#dbreplica) |
| `NC_MAIL_DOMAIN` | | | [`mail_domain`](https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#mail_domain) |
| `NC_MAIL_FROM_ADDRESS` | | | [`mail_from_address`](https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#mail_from_address) |
| `NC_MAIL_MODE` | | smtp | [`mail_smtpmode`](https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#mail_smtpmode) |
| `NC_MAIL_HOST` | | | [`mail_smtphost`](https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#mail_smtphost) |
| `NC_MAIL_PORT` | | 25 | [`mail_smtpport`](https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#mail_smtpport) |
| `NC_MAIL_SECURE` | | true | [`mail_smtpsecure`](https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#mail_smtpsecure) |
| `NC_MAIL_USERNAME` | | | [`mail_smtpname`](https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#mail_smtpname) |
| `NC_MAIL_PASSWORD` | | | [`mail_smtppassword`](https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#mail_smtppassword) |
| `NC_REDIS_ENABLED` | | false | [`redis`](https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#redis) |
| `NC_REDIS_HOST` | | | |
| `NC_REDIS_PORT` | | 6379 | |
| `NC_REDIS_TIMEOUT` | | | |
| `NC_REDIS_USERNAME` | | | |
| `NC_REDIS_PASSWORD` | | | |
| `NC_REDIS_DATABASE` | | 0 | |
## License
[MIT](LICENSE)