Skip to content

Commit 067f961

Browse files
committed
Clarify comments
1 parent c7603ba commit 067f961

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

internal/controller/nginx/config/servers.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,11 @@ and which backend to use, then redirects to the internal inference location. The
310310
location calls the inference NJS module to get the AI endpoint to proxy to, then redirects to the
311311
internal location that proxies to the backend.
312312
313+
Note that the location path naming here is a little different than the previous example.
314+
The final location that proxy_passes has the non-inference name to avoid too much refactoring
315+
in the code, and the intermediate location has -inference in the name, whereas in the previous example
316+
it was the final location that had -inference in the name.
317+
313318
location /coffee {
314319
js_content httpmatches.match; // chooses backend and redirects to appropriate internal inference location
315320
}

0 commit comments

Comments
 (0)