From 346a71e79c9372c61fb6d1d65e75d94dbee3b7f6 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Wed, 30 Mar 2022 12:19:37 +0100 Subject: [PATCH] Remove references to NEBULA_IP as it's not required --- README.md | 3 +-- docker-compose.yaml | 1 - docker-entrypoint.sh | 5 ----- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/README.md b/README.md index e6de44c..7a392df 100644 --- a/README.md +++ b/README.md @@ -57,5 +57,4 @@ Distributed & E2EE self-hosting. The goal is to have nodes voluntarily join the 5. Run the container with `docker-compose up -d`. This will create two files, `host.key` and `host.csr`. 6. Send the contents of the `host.csr` file and your chosen hostname to a cluster admin to sign. 7. The signed certificate should go alongside the `host.csr` file and be called, `host.crt`. -8. The admin should have also provided an IP address in CIDR notation (e.g. `10.10.100.99/24`). Set that with the `NEBULA_IP` environment variable in the `docker-compose.yaml`. -9. Start the container again and it should find the config and certificates and then connect to the existing cluster. +8. Start the container again and it should find the config and certificates and then connect to the existing cluster. diff --git a/docker-compose.yaml b/docker-compose.yaml index 64c9987..02b88e9 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -13,4 +13,3 @@ services: - /dev/net/tun environment: - TZ=Europe/London - - NEBULA_IP=10.10.100.x/24 diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 252eb6d..304dca6 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -28,10 +28,5 @@ if ! test -f ${DATA_DIR}/host.crt; then fi # ----------------------------------------------------------- -if test -z "${NEBULA_IP}" -o "${NEBULA_IP}" == '10.10.100.x/24'; then - echo 'You did not set a valid value for the environment variable NEBULA_IP' - exit 1 -fi - # Run the platform-specific binary "${BIN_DIR}/nebula" -config ${DATA_DIR}/config.yaml