From 977b163b8dfc81b8dac84c1c51c3edf9007adbf1 Mon Sep 17 00:00:00 2001 From: fabolous005 Date: Tue, 26 Nov 2024 12:23:40 +0100 Subject: [PATCH] add https for release builds --- Cargo.toml | 5 ++++- Rocket.toml | 11 +++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index bac003d..557d87b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,6 +4,9 @@ version = "0.1.0" edition = "2021" [dependencies] -rocket = "0.5.1" +rocket = { version = "0.5.1", features = ["tls"] } rocket_dyn_templates = { version = "0.2.0", features = ["tera"] } serde = { version = "1.0.215", features = ["derive"] } + +[target.'cfg(unix)'.dependencies] +rustls = { version = "0.23", features = ["aws_lc_rs"] } diff --git a/Rocket.toml b/Rocket.toml index 5a48c6b..58a040a 100644 --- a/Rocket.toml +++ b/Rocket.toml @@ -1,2 +1,13 @@ [default] template_dir = "static/html" + +[debug] +address = "127.0.0.1" +port = 8000 + +[release] +address = "192.168.2.101" +port = 443 +[release.tls] +certs = "private/fullchain.pem" +key = "private/privkey.pem"