From d8f08b9234f1bc996f86f02757c238f89e0c6480 Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Fri, 23 Feb 2024 20:38:23 +0200 Subject: [PATCH] ssh enabled only for DEV environments (others are behind proxy) --- .env | 4 +--- .env.dev | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 .env.dev diff --git a/.env b/.env index af1a46c..2ef4f3f 100644 --- a/.env +++ b/.env @@ -5,9 +5,7 @@ NEXT_PUBLIC_HOST=localhost NEXT_PUBLIC_PORT=3003 NEXTAUTH_URL=https://localhost:3003 # NEXTAUTH_URL_INTERNAL=http://127.0.0.1:3003 -SSL_ENABLED=true -SSL_KEY=./certificates/localhost-key.pem -SSL_CERT=./certificates/localhost.pem + # Linux: `openssl rand -hex 32` or go to https://generate-secret.now.sh/32 diff --git a/.env.dev b/.env.dev new file mode 100644 index 0000000..233e8b6 --- /dev/null +++ b/.env.dev @@ -0,0 +1,3 @@ +SSL_ENABLED=true +SSL_KEY=./certificates/localhost-key.pem +SSL_CERT=./certificates/localhost.pem \ No newline at end of file