From c41dae8d046ff6c76ad6ff82cb9cf7a909eef01a Mon Sep 17 00:00:00 2001 From: notplants Date: Fri, 17 Dec 2021 17:23:27 -0500 Subject: [PATCH] Copy Rocket.toml to /usr/share/peach-web --- Cargo.lock | 2 +- peach-web/Cargo.toml | 3 ++- peach-web/Rocket.toml | 3 +++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 88d21fb..5adc1e1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2541,7 +2541,7 @@ dependencies = [ [[package]] name = "peach-web" -version = "0.4.12" +version = "0.4.14" dependencies = [ "env_logger 0.8.4", "log 0.4.14", diff --git a/peach-web/Cargo.toml b/peach-web/Cargo.toml index 5bc93b3..9cd8bb2 100644 --- a/peach-web/Cargo.toml +++ b/peach-web/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "peach-web" -version = "0.4.12" +version = "0.4.14" authors = ["Andrew Reid "] edition = "2018" description = "peach-web is a web application which provides a web interface for monitoring and interacting with the PeachCloud device. This allows administration of the single-board computer (ie. Raspberry Pi) running PeachCloud, as well as the ssb-server and related plugins." @@ -21,6 +21,7 @@ maintainer-scripts="debian" systemd-units = { unit-name = "peach-web" } assets = [ ["target/release/peach-web", "/usr/bin/", "755"], + ["Rocket.toml", "/usr/share/peach-web/Rocket.toml", "644"], ["templates/**/*", "/usr/share/peach-web/templates/", "644"], ["static/*", "/usr/share/peach-web/static/", "644"], ["static/css/*", "/usr/share/peach-web/static/css/", "644"], diff --git a/peach-web/Rocket.toml b/peach-web/Rocket.toml index d46d8fb..b678c04 100644 --- a/peach-web/Rocket.toml +++ b/peach-web/Rocket.toml @@ -1,3 +1,6 @@ +[default] +secret = "VYVUDivXvu8g6llxeJd9F92pMfocml5xl/Jjv5Sk4yw=" + [development] template_dir = "templates/" disable_auth = true