This commit is contained in:
Niels Andriesse 2021-03-16 10:10:57 +11:00
parent 065cf8f989
commit 78bea46dd4
2 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@ apt install certbot // Only if you don't have certbot installed already
certbot certonly
```
Follow the instructions on-screen and then move the generated certificate and private key to the session-open-group folder (you'll need to rename them to tls_private_key.pem and tls_certificate respectively as well).
Follow the instructions on-screen and then **copy** (don't move) the generated certificate and private key to the session-open-group folder (you'll need to rename them to tls_private_key.pem and tls_certificate respectively as well).
### Step 3: Build the project

View File

@ -17,8 +17,8 @@ async fn main() {
storage::create_tables_if_needed(&conn);
warp::serve(routes::lsrpc(pool))
.tls()
.cert_path("../tls_certificate.pem")
.key_path("../tls_private_key.pem")
.cert_path("tls_certificate.pem")
.key_path("tls_private_key.pem")
.run(([0, 0, 0, 0], 443))
.await;
}