This project exports an Akka Http REST service that selects diet data from a medical database based on patient and encounter id values.
For details see:
- https://doc.akka.io/docs/akka-http/current/server-side/server-https-support.html
- https://lightbend.github.io/ssl-config/CertificateGeneration.html
Also see:
- x509.txt
- x509 directory
Both JKS and PKCS12 keystore formats have been tested to date. Simply edited the server.conf accordingly.
- passphrase="password", keystorePath="./x509/localhost.jks", keystoreType="JKS", sslProtocol="TLS", algorithm="SunX509"
- passphrase="password", keystorePath="./x509/localhost.p12", keystoreType="PKCS12", sslProtocol="TLS", algorithm="SunX509"
See the x509.txt file, section [ Create PKCS12 Keystore ], for how to create the localhost.p12 keystore.
- sbt clean test
- sbt run
Run with optional system property args. See server.conf for all system properties with a ${?property} format.
- sbt "run -Dconfig.override_with_env_vars=true -Dhost=127.0.0.1 -Dport=7443"
Run app and query rest service:
- sbt universal:packageZipTarball | windows:packageBin
- tar -xvzf ./target/universal/akka-http-medical-0.1.tgz -C ./target/universal
- sh ./target/universal/akka-http-medical-0.1/bin/akka-http-medical