add SSL
All checks were successful
Deploy ${{ gitea.repository }} / build (push) Successful in 1s

This commit is contained in:
Adam Jeniski 2026-01-03 10:54:38 -05:00
parent 7f400632d2
commit 3f5d6e9e11
2 changed files with 14 additions and 1 deletions

6
.gitignore vendored
View File

@ -3,3 +3,9 @@
.lsp .lsp
.cpcache .cpcache
.nrepl-port .nrepl-port
# SSL certificates and private keys
ssl/*.p12
ssl/*.key
ssl/*.jks
ssl/*.pem

View File

@ -52,6 +52,13 @@
(run-jetty app (merge {:join? false, :port 80} opts))) (run-jetty app (merge {:join? false, :port 80} opts)))
(defn -main [& _args] (defn -main [& _args]
(make-server {:join? true})) (let [keystore-path "ssl/keystore.p12"
keystore-password "changeit"]
(make-server {:join? true
:ssl? true
:ssl-port 443
:keystore keystore-path
:key-password keystore-password
:keystore-type "PKCS12"})))