From c63412fbe596c8eca888b33507abd8490bade0ea Mon Sep 17 00:00:00 2001
From: xavierchanth
Date: Mon, 9 Sep 2024 14:10:13 -0700
Subject: [PATCH] fix: nginx in sshnpd containers
---
tools/demo-env/sshnpd/entrypoint.sh | 3 +++
tools/demo-env/sshnpd/index.html | 2 +-
tools/demo-env/sshnpd/nginx.conf | 28 +++++++---------------------
3 files changed, 11 insertions(+), 22 deletions(-)
diff --git a/tools/demo-env/sshnpd/entrypoint.sh b/tools/demo-env/sshnpd/entrypoint.sh
index 61e320c5d..890024ff9 100644
--- a/tools/demo-env/sshnpd/entrypoint.sh
+++ b/tools/demo-env/sshnpd/entrypoint.sh
@@ -14,6 +14,9 @@ if [ -n "$POLICY" ]; then
ARGS="-p $POLICY $ARGS"
fi
+# Start nginx
+sudo /usr/sbin/nginx
+
echo Running command: /home/atsign/sshnpd -a \"$ATSIGN\" $ARGS
# Run the NoPorts agent
diff --git a/tools/demo-env/sshnpd/index.html b/tools/demo-env/sshnpd/index.html
index 2e4a50192..445ef8ed1 100644
--- a/tools/demo-env/sshnpd/index.html
+++ b/tools/demo-env/sshnpd/index.html
@@ -26,6 +26,6 @@ Demo Web Page
shadow and night.
Files
- Go to files index
+ Go to files index