Merge branch 'feature/add-basic-authentication' of https://github.com/ajnart/homarr into feature/add-basic-authentication

This commit is contained in:
Meier Lukas
2023-08-05 09:57:55 +02:00
4 changed files with 11 additions and 2 deletions

View File

@@ -14,8 +14,12 @@ COPY package.json ./package.json
COPY .next/standalone ./
COPY .next/static ./.next/static
COPY ./scripts/run.sh ./scripts/run.sh
EXPOSE 7575
ENV PORT 7575
ENV NEXTAUTH_SECRET NOT_IN_USE_BECAUSE_JWTS_ARE_UNUSED
ENV NEXTAUTH_URL_INTERNAL http://homarr:7575
CMD ["node", "server.js"]
CMD ["sh", "./scripts/run.sh"]

View File

@@ -9,7 +9,7 @@
},
"scripts": {
"dev": "next dev",
"build": "next build",
"build": "NEXTAUTH_SECRET=WILL_BE_OVERWRITTEN next build",
"analyze": "ANALYZE=true next build",
"turbo": "turbo run build",
"start": "next start",

View File

@@ -3,6 +3,7 @@
generator client {
provider = "prisma-client-js"
binaryTargets = ["native", "linux-musl-openssl-3.0.x"]
}
datasource db {

4
scripts/run.sh Normal file
View File

@@ -0,0 +1,4 @@
#!/bin/sh
export NEXTAUTH_URL_INTERNAL="http://$HOSTNAME:7575"
node /app/server.js