File tree Expand file tree Collapse file tree 3 files changed +22
-14
lines changed Expand file tree Collapse file tree 3 files changed +22
-14
lines changed Original file line number Diff line number Diff line change 40
40
server storage-blob-api:9300 ;
41
41
}
42
42
43
- # upstream collab {
44
- # server collab:4000;
45
- # }
43
+ upstream collab {
44
+ server collab:4000 ;
45
+ }
46
46
47
47
server {
48
48
listen 80 ;
@@ -74,8 +74,16 @@ http {
74
74
proxy_pass http ://storage_blob_api/;
75
75
}
76
76
77
- # location /collab/ {
78
- # proxy_pass http://collab/;
79
- # }
77
+ location /collab/ {
78
+ proxy_pass http ://collab/;
79
+ proxy_set_header Host $host ;
80
+ proxy_set_header X-Real-IP $remote_addr ;
81
+ proxy_set_header X-Forwarded-Proto $scheme ;
82
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for ;
83
+ proxy_http_version 1.1;
84
+ proxy_set_header Upgrade $http_upgrade ;
85
+ proxy_set_header Connection "upgrade" ;
86
+ proxy_read_timeout 86400 ;
87
+ }
80
88
}
81
89
}
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import {
17
17
import ResettingStopwatch from "../shared/ResettingStopwatch" ;
18
18
import PeerprepDropdown from "../shared/PeerprepDropdown" ;
19
19
20
- const QUERY_INTERVAL_MILLISECONDS = 5000 ;
20
+ const QUERY_INTERVAL_MILLISECONDS = 1000 ;
21
21
const TIMEOUT_MILLISECONDS = 30000 ;
22
22
23
23
const getMatchRequestTime = ( ) : string => {
Original file line number Diff line number Diff line change 1
1
/** @type {import('next').NextConfig } */
2
- const nextConfig = { }
2
+ const nextConfig = { } ;
3
3
4
4
module . exports = {
5
5
async rewrites ( ) {
6
6
return [
7
7
{
8
- source : ' /api/proxy' , // client connects to api/proxy
8
+ source : " /api/proxy" , // client connects to api/proxy
9
9
// by default we expect NEXT_PUBLIC_COLLAB to be http://collab:4000.
10
10
// double check this before using this.
11
- destination : `${ process . env . NEXT_PUBLIC_COLLAB } /ws` ,
12
- }
13
- ]
14
- }
15
- }
11
+ destination : `${ process . env . NEXT_PUBLIC_NGINX } / ${ process . env . NEXT_PUBLIC_COLLAB } /ws` ,
12
+ } ,
13
+ ] ;
14
+ } ,
15
+ } ;
You can’t perform that action at this time.
0 commit comments