From ea2a5091c959befd95c2086bfafc065560bc8385 Mon Sep 17 00:00:00 2001 From: xis Date: Mon, 9 Oct 2023 18:27:45 +0200 Subject: [PATCH] Readme update --- README.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e4b81a2..12d76fe 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,30 @@ Just edit the `application.yml` and rebuild the project with: `./gradlew clean bootRun` -### +You can also pass the environment variables without editing the config files: + +`NEXTCLOUD_DLNA_SERVER_PORT=9999 ./gradlew clean bootRun` + +or, if you've already built the project and created the jar file: + +`NEXTCLOUD_DLNA_SERVER_PORT=9999 java -jar nextcloud-dlna-X.Y.Z.jar` + +Available env variables with their default values that you can overwrite: + +| env variable | default value | description | +|------------------------------|----------------|---------------------------------------------------------| +| NEXTCLOUD_DLNA_SERVER_PORT | 8080 | port on which the contentController will listen | +| NEXTCLOUD_DLNA_INTERFACE | eth0 | interface the server will be listening on | +| NEXTCLOUD_DLNA_FRIENDLY_NAME | Nextcloud-DLNA | friendly name of the DLNA service | +| NEXTCLOUD_DATA_DIR | | nextcloud installation directory (that ends with /data) | +| NEXTCLOUD_DB_HOST | localhost | nextcloud database host | +| NEXTCLOUD_DB_PORT | 3306 | nextcloud database port | +| NEXTCLOUD_DB_NAME | nextcloud | nextcloud database name | +| NEXTCLOUD_DB_USER | nextcloud | nextcloud database username | +| NEXTCLOUD_DB_PASS | nextcloud | nextcloud database password | + + +### Code used Some java code was taken from https://github.com/haku/dlnatoad and https://github.com/UniversalMediaServer/UniversalMediaServer converted to Kotlin with upgrade to jupnp instead of