[Homarr] Fix config .env errors

This commit is contained in:
Sam Heinz
2024-04-12 19:49:01 +10:00
parent f6c5b9f08c
commit 12f4aab0a8
2 changed files with 15 additions and 1 deletions

View File

@@ -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

14
misc/homarr.env Normal file
View File

@@ -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"