Skip to content

Commit

Permalink
SITES-3659 - [Odin] Review Dispatcher config for Odin and contribute …
Browse files Browse the repository at this point in the history
…generic parts - Persisted queries (#946)
  • Loading branch information
sandru85 authored Jul 11, 2022
1 parent 6045175 commit e78e504
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ Alias "/system/probes/start" /etc/httpd/probes/startup-status.json
Header unset Age
</IfDefine>

# SITES-3659 Prevent re-encodes of URLs sent to GraphQL Persisted Queries API endpoint
<LocationMatch "/graphql/execute.json/.*">
ProxyPassMatch http://${AEM_HOST}:${AEM_PORT} nocanon
</LocationMatch>

# (legacy) Allow ingressroute checks through on /systemready (regardless of dispatcher filters)
<Location "/systemready">
ProxyPass http://${AEM_HOST}:${AEM_PORT}/systemready
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,7 @@ RewriteRule .* - [F]

# Block wp-login
RewriteRule ^.*wp-login - [F,NC,L]

# Allow caching of persisted queries
RewriteCond %{REQUEST_URI} ^/graphql/execute.json
RewriteRule ^/(.*)$ /$1;.json [PT,L]
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,3 @@
/glob "/screens/channels.json"
/type "deny"
}

# GraphQL cache rules for persistent queries
/0020 {
/glob "/graphql/execute.json/*"
/type "deny"
}

0 comments on commit e78e504

Please sign in to comment.