diff --git a/resources/public/index.html b/resources/public/index.html index 77ffe4f..75f5050 100644 --- a/resources/public/index.html +++ b/resources/public/index.html @@ -1,9 +1,12 @@ -
+ + + + - + diff --git a/shadow-cljs.edn b/shadow-cljs.edn index 3e9502b..b01c26b 100644 --- a/shadow-cljs.edn +++ b/shadow-cljs.edn @@ -1,7 +1,9 @@ {:deps true + :ssl {:keystore "ssl/localhost.jks" + :password "shadow-cljs"} :dev-http {8080 "resources/public"} :builds {:app {:target :browser :output-dir "resources/public/js" :asset-path "/js" - :modules {:main {:entries [heyarne.all-my-friends.core]}} }} } + :modules {:main {:entries [heyarne.all-my-friends.core]}}}}} diff --git a/ssl/generate.sh b/ssl/generate.sh new file mode 100644 index 0000000..13de02d --- /dev/null +++ b/ssl/generate.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +# Generates a new certificate that can be used for localhost by shadow-cljs# the certificate can be configured in localhost.conf + +openssl req -x509 -out localhost.crt -keyout localhost.key -newkey rsa:2048 -nodes -sha256 -subj /CN=localhost -extensions EXT -config localhost.conf +openssl pkcs12 -export -in localhost.crt -inkey localhost.key -out localhost.p12 +keytool -importkeystore -srckeystore localhost.p12 -srcstoretype PKCS12 -destkeystore localhost.jks -deststoretype JKS diff --git a/ssl/localhost.conf b/ssl/localhost.conf new file mode 100644 index 0000000..e19f963 --- /dev/null +++ b/ssl/localhost.conf @@ -0,0 +1,14 @@ +[dn] +CN = localhost + +[req] +distinguished_name = dn + +[EXT] +subjectAltName = @alternate_names +keyUsage = digitalSignature +extendedKeyUsage = serverAuth + +[alternate_names] +DNS.1 = localhost +DNS.2 = odroidxu4.lan