zilexa / Homeserver

Lightweight home server based on microservices, usable as desktop workstation
916 stars 56 forks source link

Update .env #14

Closed P3nkiln closed 2 years ago

P3nkiln commented 2 years ago

Extra "s" creates error on running docker-compose up.

zilexa commented 2 years ago

the variable names in .env can be anything, it can be with s, without, it can just be ABC123. As long as it matches what you use in your compose file. If you see an error, you mismatched the name you chose.

I prefer to use LAN_ADDRESS_RANGES, because that reflects the fact you will have multiple if you follow this guide (one for LAN and one for VPN).

P3nkiln commented 2 years ago

That's true. It was just to get it to match.

zsole2 commented 2 years ago

I still get the same error running docker-compose, and upon checking it, docker-compose.yml still contains the following section:

  WGUI_DEFAULT_CLIENT_ALLOWED_IPS: $WGIP/24
  WGUI_DEFAULT_CLIENT_EXTRA_ALLOWED_IPS: $LAN_ADDRESS_RANGE
  SMTP_HOSTNAME: $SMTP

Clearly, .env does not match the compose file.

Thanks for this great project write-up!!! I'm started to test it, surely will have more questions later-on.

zilexa commented 2 years ago

Make sure there are no spaces etc.. utf or Unicode style. Use trial and error: try renaming, get to the cause. If it doesn't match, it's not identical. Use copy paste. Create a new file. Stuff like that.