forked from forkanization/Proxmox-arm64
[Homarr] Fix config .env errors
This commit is contained in:
@@ -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
14
misc/homarr.env
Normal 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"
|
||||
Reference in New Issue
Block a user