This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Generating self-signed certificates..." | |
mkdir -p ./config/sslcerts | |
openssl genrsa -out ./config/sslcerts/key.pem 4096 | |
openssl req -new -key ./config/sslcerts/key.pem -out ./config/sslcerts/csr.pem | |
openssl x509 -req -days 365 -in ./config/sslcerts/csr.pem -signkey ./config/sslcerts/key.pem -out ./config/sslcerts/cert.pem | |
rm ./config/sslcerts/csr.pem | |
chmod 600 ./config/sslcerts/key.pem ./config/sslcerts/cert.pem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 443; | |
ssl on; | |
ssl_certificate /var/www/wsApp/config/sslcerts/cert.pem; | |
ssl_certificate_key /var/www/wsApp/config/sslcerts/key.pem; | |
server_name localhost; | |
gzip on; | |
gzip_comp_level 6; | |
gzip_vary on; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
function getHighestValuesInFrequency(frequency) { | |
// frequency är {jacob: 1, mats : 2, johan: 1, john : 2} | |
var keys = Object.keys(frequency); | |
// keys är nu ["jacob", "mats", "johan", "john"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT * FROM Admin. |