Merge pull request #11172 from Budibase/fix/single-image-embed

Add embed config to single image nginx config
This commit is contained in:
Andrew Kingston 2023-07-10 09:36:46 +01:00 committed by GitHub
commit dcb340a835
1 changed files with 10 additions and 0 deletions

View File

@ -22,6 +22,16 @@ server {
proxy_pass http://127.0.0.1:4001;
}
location /embed {
rewrite /embed/(.*) /app/$1 break;
proxy_pass http://127.0.0.1:4001;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header x-budibase-embed "true";
add_header x-budibase-embed "true";
add_header Content-Security-Policy "frame-ancestors *";
}
location = / {
proxy_pass http://127.0.0.1:4001;
}