You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/semantic-router/cmd/main.go
+9-8Lines changed: 9 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -15,13 +15,14 @@ import (
15
15
funcmain() {
16
16
// Parse command-line flags
17
17
var (
18
-
configPath=flag.String("config", "config/config.yaml", "Path to the configuration file")
19
-
port=flag.Int("port", 50051, "Port to listen on for gRPC ExtProc")
20
-
apiPort=flag.Int("api-port", 8080, "Port to listen on for Classification API")
21
-
metricsPort=flag.Int("metrics-port", 9190, "Port for Prometheus metrics")
22
-
enableAPI=flag.Bool("enable-api", true, "Enable Classification API server")
23
-
secure=flag.Bool("secure", false, "Enable secure gRPC server with TLS")
24
-
certPath=flag.String("cert-path", "", "Path to TLS certificate directory (containing tls.crt and tls.key)")
18
+
configPath=flag.String("config", "config/config.yaml", "Path to the configuration file")
19
+
port=flag.Int("port", 50051, "Port to listen on for gRPC ExtProc")
20
+
apiPort=flag.Int("api-port", 8080, "Port to listen on for Classification API")
21
+
metricsPort=flag.Int("metrics-port", 9190, "Port for Prometheus metrics")
22
+
enableAPI=flag.Bool("enable-api", true, "Enable Classification API server")
23
+
enableSystemPromptAPI=flag.Bool("enable-system-prompt-api", false, "Enable system prompt configuration endpoints (SECURITY: only enable in trusted environments)")
24
+
secure=flag.Bool("secure", false, "Enable secure gRPC server with TLS")
25
+
certPath=flag.String("cert-path", "", "Path to TLS certificate directory (containing tls.crt and tls.key)")
25
26
)
26
27
flag.Parse()
27
28
@@ -58,7 +59,7 @@ func main() {
58
59
if*enableAPI {
59
60
gofunc() {
60
61
observability.Infof("Starting Classification API server on port %d", *apiPort)
0 commit comments