Skip to content

Commit

Permalink
feat: expose nomad dashboard via cloudflare tunnels (#543)
Browse files Browse the repository at this point in the history
<!-- Please make sure there is an issue that this PR is correlated to. -->

## Changes

<!-- If there are frontend changes, please include screenshots. -->
  • Loading branch information
NathanFlurry committed Feb 27, 2024
1 parent f2d847b commit 3a574c0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/bolt/core/src/dep/terraform/gen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,17 @@ async fn vars(ctx: &ProjectContext) {
}),
);

// Nomad tunnel
tunnels.insert(
"nomad",
json!({
"name": "Nomad",
"service": "http://nomad-server.nomad.svc.cluster.local:4646",
"access_groups": access.as_ref().map(|x| vec![x.groups.engineering.clone()]).unwrap_or_default(),
"service_tokens": []
}),
);

vars.insert("tunnels".into(), json!(&tunnels));
}

Expand Down

0 comments on commit 3a574c0

Please sign in to comment.