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