From 281a4b5bc905eb0019f5124351d5405f70307a65 Mon Sep 17 00:00:00 2001 From: Ben Date: Fri, 14 Jun 2024 09:54:23 +0000 Subject: [PATCH] [minds] Embedded Boosts minds#4847 --- containers/nginx/dev-ssr.conf.tpl | 7 +++++++ docker-compose.yml | 1 + 2 files changed, 8 insertions(+) diff --git a/containers/nginx/dev-ssr.conf.tpl b/containers/nginx/dev-ssr.conf.tpl index f81ee5782..1d9343efb 100644 --- a/containers/nginx/dev-ssr.conf.tpl +++ b/containers/nginx/dev-ssr.conf.tpl @@ -115,6 +115,13 @@ server { add_header 'Access-Control-Allow-Credentials' 'true'; } + location /plugins/embedded-boosts { + alias /var/www/Minds/embedded-boosts/build; + index index.html; + + add_header 'Access-Control-Allow-Origin' "$http_origin"; + } + location ^~ /api/sockets/ { set $upstream http://sockets:3000; diff --git a/docker-compose.yml b/docker-compose.yml index f44609825..c7ca32e5d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -23,6 +23,7 @@ services: volumes: - ./front/:/var/www/Minds/front:cached - ./embedded-comments/:/var/www/Minds/embedded-comments + - ./embedded-boosts/:/var/www/Minds/embedded-boosts ## APP ENGINE