lev launch config. update some images

This commit is contained in:
Dobromir Popov
2024-02-23 21:28:56 +02:00
parent d8f08b9234
commit bce92fb6cc
13 changed files with 24 additions and 16 deletions

2
.env
View File

@ -32,7 +32,7 @@ AUTH0_SECRET=_c0O9GkyRXkoWMQW7jNExnl6UoXN6O4oD3mg7NZ_uHVeAinCUtcTAkeQmcKXpZ4x
AUTH0_ISSUER=https://dev-wkzi658ckibr1amv.us.auth0.com
FACEBOOK_ID=
FACEBOOK_SECRE
FACEBOOK_SECRET=
GITHUB_ID=
GITHUB_SECRET=

View File

@ -1,3 +0,0 @@
SSL_ENABLED=true
SSL_KEY=./certificates/localhost-key.pem
SSL_CERT=./certificates/localhost.pem

7
.env.development Normal file
View File

@ -0,0 +1,7 @@
NODE_TLS_REJECT_UNAUTHORIZED=0
# NODE_EXTRA_CA_CERTS=C:\\Users\\popov\\AppData\\Local\\mkcert
SSL_ENABLED=true
SSL_KEY=./certificates/localhost-key.pem
SSL_CERT=./certificates/localhost.pem
DATABASE_URL=mysql://root:Zelen0ku4e@192.168.0.10:3306/cart_dev

7
.vscode/launch.json vendored
View File

@ -16,11 +16,14 @@
}
},
{
"name": "Run npm nodemon",
"command": "npm run debug ", // > _logs/debug.log
"name": "Run npm nodemon (DEV)",
"command": "npm run debug", // > _logs/debug.log
"request": "launch",
"type": "node-terminal",
"preLaunchTask": "killInspector", // <-- Add this line
"env": {
"NODE_ENV": "development"
}
},
{
// "type": "pwa-node",

View File

@ -99,17 +99,17 @@ const FileUploadWithPreview = ({ name, value, prefix, onUpload, label }) => {
</button>
</>
)}
</div>
{
thumbnail && (
<div className="mt-2 flex justify-center">
<div className="max-w-xs max-h-64 overflow-hidden rounded-md">
<img src={thumbnail} alt="Thumbnail" className="object-contain w-full h-full" />
{
thumbnail && (
<div className="mt-2 flex justify-center">
<div className="max-w-xs max-h-64 overflow-hidden rounded-md">
<img src={thumbnail} alt="Thumbnail" className="object-contain w-full h-full" />
</div>
</div>
</div>
)
}
</div >
)
}
</div>
</div>
);
};

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 329 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 366 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

@ -63,6 +63,7 @@ app
const options = {
key: fs.readFileSync(process.env.SSL_KEY),
cert: fs.readFileSync(process.env.SSL_CERT),
secureProtocol: 'TLSv1_2_method', // Example: Force TLS 1.2
};
https.createServer(options, server).listen(PORT);
}