Skip to content

Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.

nix: drop the stray semicolon in the module's nginx proxy_pass

gerrydoro045f01a7e4ac
diff --git a/contrib/nix/opengym.nix b/contrib/nix/opengym.nix
index 8d91e583c..604527399 100644
--- a/contrib/nix/opengym.nix
+++ b/contrib/nix/opengym.nix
@@ -373,7 +373,9 @@ in
tryFiles = "$uri $uri/ /index.html";
};
"/api/" = {
- proxyPass = "http://127.0.0.1:${toString cfg.apiPort};";
+ # services.nginx renders this as `proxy_pass <value>;`, so the value
+ # must not carry its own semicolon (nginx rejects `;;`).
+ proxyPass = "http://127.0.0.1:${toString cfg.apiPort}";
extraConfig = ''
proxy_http_version 1.1;
proxy_set_header Host $host;