diff mrjunejune/inference_stack.sh @ 264:04fee26ecce0

add authenticated JRPG conversation platform Add reusable auth/session storage, owned conversation recovery, guest quotas, admin workflows, URL-routed conversation UI, mobile frame support, and parallel browser acceptance. Co-authored-by: Copilot <[email protected]>
author MrJuneJune <me@mrjunejune.com>
date Fri, 07 Aug 2026 07:34:12 -0700
parents b401627fc49e
children 056790c4fb0d
line wrap: on
line diff
--- a/mrjunejune/inference_stack.sh	Thu Aug 06 11:31:30 2026 -0700
+++ b/mrjunejune/inference_stack.sh	Fri Aug 07 07:34:12 2026 -0700
@@ -70,7 +70,10 @@
   fi
   export MRJUNEJUNE_COPILOT_CLI_PATH="$MRJUNEJUNE_INFERENCE_SIDECAR_PATH"
   export MRJUNEJUNE_ALLOW_ANONYMOUS_INFERENCE=1
-  echo "Starting mock inference at http://127.0.0.1:${MRJUNEJUNE_PORT:-6969}/jrpg"
+  # Bind to loopback for local dev; insecure cookies are only allowed here.
+  export SERVER_HOST="${SERVER_HOST:-127.0.0.1}"
+  export AUTH_DEV_INSECURE_COOKIE="${AUTH_DEV_INSECURE_COOKIE:-true}"
+  echo "Starting mock inference at http://${SERVER_HOST}:${MRJUNEJUNE_PORT:-6969}/jrpg"
 else
   : "${LITELLM_MASTER_KEY:?LITELLM_MASTER_KEY must be set}"
   token_dir="${GITHUB_COPILOT_TOKEN_DIR:-$state_root/litellm-copilot}"
@@ -124,6 +127,9 @@
   export LITELLM_WIRE_API="${LITELLM_WIRE_API:-completions}"
   export LITELLM_API_KEY="$LITELLM_MASTER_KEY"
   export MRJUNEJUNE_ALLOW_ANONYMOUS_INFERENCE="${MRJUNEJUNE_ALLOW_ANONYMOUS_INFERENCE:-0}"
+  # run_inference_stack is a local dev command; bind to loopback.
+  export SERVER_HOST="${SERVER_HOST:-127.0.0.1}"
+  export AUTH_DEV_INSECURE_COOKIE="${AUTH_DEV_INSECURE_COOKIE:-true}"
 fi
 
 setsid "$server" &