bigbluebutton-Github/build/packages-template/bbb-graphql-middleware/graphql.nginx

29 lines
962 B
Plaintext
Raw Normal View History

# Websocket connection
2024-05-08 19:46:14 +08:00
location /graphql {
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 (it requires to change the location to /v1/graphql)
proxy_pass http://127.0.0.1:8378; #Graphql Middleware
}
2023-12-14 02:19:17 +08:00
#Set cache system for client settings
location /api/rest/clientSettings {
2024-07-11 05:30:01 +08:00
auth_request /bigbluebutton/connection/checkGraphqlAuthorization;
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";
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
}