Skip to content

Commit 16a2d8c

Browse files
committed
update nginx
1 parent 03fa1d5 commit 16a2d8c

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

frontend/nginx.conf

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,17 @@ server {
3232
proxy_request_buffering off;
3333
proxy_http_version 1.1;
3434
proxy_set_header Connection "";
35-
36-
# Increase timeout
37-
proxy_connect_timeout 60s;
38-
proxy_send_timeout 60s;
39-
proxy_read_timeout 60s;
35+
36+
# Increase timeout to match backend timeout (180s + buffer)
37+
proxy_connect_timeout 120s;
38+
proxy_send_timeout 120s;
39+
proxy_read_timeout 120s;
4040
}
4141

4242
# Ensure correct MIME types
4343
include /etc/nginx/mime.types;
4444
default_type application/octet-stream;
45-
45+
4646
# JavaScript file handling
4747
location ~* \\.js$ {
4848
types {
@@ -52,7 +52,7 @@ server {
5252
expires 7d;
5353
try_files $uri =404;
5454
}
55-
55+
5656
# CSS file handling
5757
location ~* \\.css$ {
5858
types {
@@ -62,19 +62,19 @@ server {
6262
expires 7d;
6363
try_files $uri =404;
6464
}
65-
65+
6666
# Image file handling
6767
location ~* \\.(png|jpg|jpeg|gif|ico|svg)$ {
6868
expires 7d;
6969
try_files $uri =404;
7070
}
71-
71+
7272
# assets directory handling
7373
location /assets/ {
7474
expires 7d;
7575
try_files $uri =404;
7676
}
77-
77+
7878
# SPA application routing configuration
7979
location / {
8080
try_files $uri $uri/ /index.html;
@@ -83,4 +83,4 @@ server {
8383

8484
# Handle 404 errors
8585
error_page 404 /index.html;
86-
}
86+
}

frontend/src/components/CreateJobForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1332,7 +1332,7 @@ const CreateJobFormContent: React.FC<CreateJobFormProps> = ({
13321332
>
13331333
<TextArea
13341334
rows={4}
1335-
placeholder='e.g. {"query": "What is LLM?", "imgs": [], "model": "gpt-4o"}'
1335+
placeholder='JSON payload to send to the custom API endpoint. To quickly test the connectivity, please use a simple prompt. e.g. {"query": "Hi", "imgs": [], "model": "gpt-4o"}'
13361336
/>
13371337
</Form.Item>
13381338
</Col>

0 commit comments

Comments
 (0)