diff --git a/nginx/nginx/sites-available/forms.conf b/nginx/nginx/sites-available/forms.conf index b4fadf5..71fda05 100644 --- a/nginx/nginx/sites-available/forms.conf +++ b/nginx/nginx/sites-available/forms.conf @@ -96,6 +96,9 @@ server { # Disable Gzip from upstream so nginx can inject CSS proxy_set_header Accept-Encoding ""; + # Override Grist OG image (replace the URL directly so our image wins in all three tags) + sub_filter 'https://grist-static.com/icons/opengraph-preview-image.png' 'https://cdn.nhcarrigan.com/og-image.png'; + # Inject CSS and remove Grist branding sub_filter '' ' '; - sub_filter_once on; + sub_filter_once off; } # Upgrade websocket requests and route the api backend