Skip to content

Commit 6736191

Browse files
allow /stream in nginx
1 parent 9f726d4 commit 6736191

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/nginx/api.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ server {
77
}
88

99
# Strictly allow only GET, POST, and OPTIONS requests for the specified paths (defined in my fastapi app)
10-
location ~ ^/(generate(/cost)?|modify|)?$ {
10+
location ~ ^/(generate(/cost|/stream)?|modify|)?$ {
1111
if ($request_method !~ ^(GET|POST|OPTIONS)$) {
1212
return 444;
1313
}

0 commit comments

Comments
 (0)