summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/bridge.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/bridge.nix b/modules/bridge.nix
index efc4b92..65cec15 100644
--- a/modules/bridge.nix
+++ b/modules/bridge.nix
@@ -17,13 +17,13 @@ with lib;
};
config = mkIf cfg.enable {
- services.bridge-nightly = {
+ systemd.services.bridge-nightly = {
description = "Bridge Nightly backend";
wantedBy = ["multi-user.target"];
after = ["network.target"];
environment = {
- BIND_ADDRESS = "[::]:${cfg.port}";
+ BIND_ADDRESS = "[::]:${toString cfg.port}";
RUST_BACKTRACE = "1";
AUTHENTICATOR = "oauth";
OPENID_ISSUER_URL= "https://auth.orbekk.com/realms/test";
@@ -40,6 +40,10 @@ with lib;
};
};
+ # "bridge.orbekk.com" = template // {
+ # locations."/".proxyPass = "http://${bridge_loc.host}:${toString bridge_loc.port}";
+ # };
+
services.postgresql = {
enable = true;
enableTCPIP = true;