From 12f4aab0a8c6d001e1a79c4f70272906c31594ff Mon Sep 17 00:00:00 2001 From: Sam Heinz <54530346+asylumexp@users.noreply.github.com> Date: Fri, 12 Apr 2024 19:49:01 +1000 Subject: [PATCH] [Homarr] Fix config .env errors --- install/homarr-install.sh | 2 +- misc/homarr.env | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 misc/homarr.env diff --git a/install/homarr-install.sh b/install/homarr-install.sh index 4f9eceaba..4b006e176 100644 --- a/install/homarr-install.sh +++ b/install/homarr-install.sh @@ -41,7 +41,7 @@ mkdir -p /opt/homarr cd /opt git clone https://github.com/ajnart/homarr.git cd /opt/homarr -wget -q -O /opt/homarr/.env https://raw.githubusercontent.com/ajnart/homarr/dev/.env.example +wget -q -O /opt/homarr/.env https://raw.githubusercontent.com/asylumexp/Proxmox/main/misc/homarr.env sed -i 's|NEXTAUTH_SECRET="[^"]*"|NEXTAUTH_SECRET="'"$(openssl rand -base64 32)"'"|' /opt/homarr/.env sed 's/ $//' /opt/homarr/.env # Get rid of space at the end of last config file line $STD yarn install diff --git a/misc/homarr.env b/misc/homarr.env new file mode 100644 index 000000000..2de2526be --- /dev/null +++ b/misc/homarr.env @@ -0,0 +1,14 @@ +DATABASE_URL="file:./database/db.sqlite" + +# Next Auth +# You can generate a new secret on the command line with: +# openssl rand -base64 32 +# https://next-auth.js.org/configuration/options#secret +NEXTAUTH_URL="http://localhost:3000" + +NEXTAUTH_SECRET="anything" + +# Disable analytics +NEXT_PUBLIC_DISABLE_ANALYTICS="true" + +DEFAULT_COLOR_SCHEME="light" \ No newline at end of file