https://github.com/pjfanning/pekko-http-sample
A basic sample for using pekko-http to serve a HTTPS endpoint
https://github.com/pjfanning/pekko-http-sample
pekko pekko-http tls
Last synced: about 2 months ago
JSON representation
A basic sample for using pekko-http to serve a HTTPS endpoint
- Host: GitHub
- URL: https://github.com/pjfanning/pekko-http-sample
- Owner: pjfanning
- Created: 2023-09-19T15:44:42.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-19T12:47:39.000Z (5 months ago)
- Last Synced: 2025-01-24T07:42:30.235Z (3 months ago)
- Topics: pekko, pekko-http, tls
- Language: Scala
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pekko-http-sample
Basic sample that serves a HTTPS at https://localhost:8443/hello
* The sample uses a server cert from the provided keystore.jks file. This key and keystore should not be used for any other purpose.
Start the server with `sbt run`.
Test with:
```
curl -vk https://localhost:8443/hello
```The `-k` code option means that curl will not validate the server cert (the sample cert in keystore.jks).
The `application.conf` enables HTTP/2 support.