2023-04-28 00:38:44 +08:00
|
|
|
# Websocket connection
|
2024-05-08 19:46:14 +08:00
|
|
|
location /graphql {
|
2023-04-28 00:38:44 +08:00
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "Upgrade";
|
|
|
|
proxy_set_header Host $host;
|
2024-05-23 02:51:12 +08:00
|
|
|
#proxy_pass http://127.0.0.1:8085; #Hasura (it requires to change the location to /v1/graphql)
|
2023-04-28 00:38:44 +08:00
|
|
|
proxy_pass http://127.0.0.1:8378; #Graphql Middleware
|
|
|
|
}
|
2023-12-14 02:19:17 +08:00
|
|
|
|
2024-05-04 01:42:54 +08:00
|
|
|
#Set cache system for client settings
|
2024-07-19 23:30:16 +08:00
|
|
|
location /api/rest/clientSettings {
|
2024-07-11 05:30:01 +08:00
|
|
|
auth_request /bigbluebutton/connection/checkGraphqlAuthorization;
|
2024-05-04 01:42:54 +08:00
|
|
|
auth_request_set $meeting_id $sent_http_meeting_id;
|
|
|
|
|
|
|
|
proxy_cache client_settings_cache;
|
2024-05-07 21:46:52 +08:00
|
|
|
proxy_cache_key "$uri|$meeting_id";
|
2024-05-04 01:42:54 +08:00
|
|
|
proxy_cache_use_stale updating;
|
|
|
|
proxy_cache_valid 24h;
|
|
|
|
proxy_cache_lock on;
|
|
|
|
add_header X-Cached $upstream_cache_status;
|
|
|
|
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "Upgrade";
|
|
|
|
proxy_set_header Host $host;
|
2024-05-07 21:46:52 +08:00
|
|
|
proxy_pass http://127.0.0.1:8085; #Hasura
|
2024-05-04 01:42:54 +08:00
|
|
|
}
|
2024-09-25 22:53:02 +08:00
|
|
|
|
|
|
|
location /api/rest/userMetadata {
|
|
|
|
auth_request /bigbluebutton/connection/checkGraphqlAuthorization;
|
|
|
|
auth_request_set $meeting_id $sent_http_meeting_id;
|
|
|
|
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "Upgrade";
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_pass http://127.0.0.1:8085; #Hasura
|
|
|
|
}
|