From 36db41530af3033effa94253a630d75fc4971ed4 Mon Sep 17 00:00:00 2001 From: Tobias <96661824+CrazyWolf13@users.noreply.github.com> Date: Mon, 25 Aug 2025 16:39:42 +0200 Subject: [PATCH 1/2] Improve comments in tracktor-install.sh Updated comments for clarity in environment variable configuration. --- install/tracktor-install.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/install/tracktor-install.sh b/install/tracktor-install.sh index 6ec206ea..d0d432d9 100644 --- a/install/tracktor-install.sh +++ b/install/tracktor-install.sh @@ -26,8 +26,10 @@ cat </opt/tracktor/app/backend/.env NODE_ENV=production PUBLIC_DEMO_MODE=false DB_PATH=/opt/tracktor-data/tracktor.db -PUBLIC_API_BASE_URL=http://$HOST_IP:3000 # Replace this URL if using behind reverse proxy for https traffic. Though it is optional and should work without changing -CORS_ORIGINS=http://$HOST_IP:3000 # Here add the reverse proxy url as well to avoid cross errors from the app. +# Replace this URL if using behind reverse proxy for https traffic. Though it is optional and should work without changing +PUBLIC_API_BASE_URL=http://$HOST_IP:3000 +# Here add the reverse proxy url as well to avoid cross errors from the app. +CORS_ORIGINS=http://$HOST_IP:3000 PORT=3000 EOF msg_ok "Configured Tracktor" From f295102e72549b00fae53e98faf516cf01b9bcea Mon Sep 17 00:00:00 2001 From: Tobias <96661824+CrazyWolf13@users.noreply.github.com> Date: Mon, 25 Aug 2025 16:42:21 +0200 Subject: [PATCH 2/2] Add note about updating .env file for reverse proxy Added informational note regarding reverse proxy configuration. --- frontend/public/json/tracktor.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/public/json/tracktor.json b/frontend/public/json/tracktor.json index 2d7d0a07..0a8f7c3b 100644 --- a/frontend/public/json/tracktor.json +++ b/frontend/public/json/tracktor.json @@ -31,5 +31,10 @@ "username": null, "password": null }, - "notes": [] + "notes": [ + { + "text": "Please check and update the '/opt/tracktor/app/backend/.env' file if using behind reverse proxy.", + "type": "info" + } + ] }