about summary refs log tree commit diff
path: root/web/atward
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2021-05-03T23·16+0200
committertazjin <mail@tazj.in>2021-05-05T09·02+0000
commit47d07e7b5f946ec6b568bba8a3244f6ca58085cc (patch)
treedc37dcb293d0c7e4f2b26e1e3402c9d3affbe9aa /web/atward
parenta9902dadcf080991c587a69e066a8b77b7b1cb94 (diff)
refactor(atward): Configure listen address r/2566
This appeases the flokli.

Change-Id: Ib6a6c1a2cc8780e7944913d9204b42505b29fdc0
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3093
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
Diffstat (limited to 'web/atward')
-rw-r--r--web/atward/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/atward/src/main.rs b/web/atward/src/main.rs
index 08fa51272819..e412def4a969 100644
--- a/web/atward/src/main.rs
+++ b/web/atward/src/main.rs
@@ -58,8 +58,8 @@ fn fallback() -> Response {
 
 fn main() {
     let queries = queries();
-    let port = std::env::var("ATWARD_PORT").unwrap_or("28973".to_string());
-    let address = format!("0.0.0.0:{}", port);
+    let address = std::env::var("ATWARD_LISTEN_ADDRESS")
+        .expect("ATWARD_LISTEN_ADDRESS environment variable must be set");
 
     rouille::start_server(&address, move |request| {
         rouille::log(&request, std::io::stderr(), || {