diff options
| author | Mel <einebeere@gmail.com> | 2024-11-13 04:20:22 +0100 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2024-11-13 04:20:22 +0100 |
| commit | 0f6f4da648fe0a3635080e8474297a3f1aec8b60 (patch) | |
| tree | 5ad9f49982502b425cb0ce83a6c177dcba1215c7 /services | |
| parent | 164ca46735e350bea4dde63b7381262573e6507a (diff) | |
| download | network-0f6f4da648fe0a3635080e8474297a3f1aec8b60.tar.zst network-0f6f4da648fe0a3635080e8474297a3f1aec8b60.zip | |
Serve soju frontend, gamja
Signed-off-by: Mel <einebeere@gmail.com>
Diffstat (limited to 'services')
| -rw-r--r-- | services/gamja.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/services/gamja.nix b/services/gamja.nix new file mode 100644 index 0000000..401626a --- /dev/null +++ b/services/gamja.nix @@ -0,0 +1,27 @@ +{ pkgs, ... }: + +let + gamjaConfig = { + server = { + url = "wss://renard.serval-moth.ts.net/gamja/socket"; + auth = "mandatory"; + nick = "mel"; + }; + }; + + gamja = pkgs.gamja.override { inherit gamjaConfig; }; + +in +{ + # gamja is tailnet interal + services.nginx.virtualHosts.renard.locations = { + "/gamja" = { return = "301 $scheme://$host$request_uri/"; }; + "/gamja/" = { alias = "${gamja}/"; }; + + "/gamja/socket" = { + proxyPass = "http://100.75.17.75:3030"; + proxyWebsockets = true; + recommendedProxySettings = true; + }; + }; +} |
