add headers to embed nextcloud in frame on external site #28

Merged
yksflip merged 1 commits from embed_nextcloud_in_iframe into main 2022-09-02 14:32:05 +00:00
Owner

This introduces new env variables to configure nextloud to be embedded via
iframe on an external site.
Setting X_FRAME_OPTIONS_ENABLED=1 will configure nginx and nextcloud to
set X-Frame-Options and CSP headers to allow the domain configured in
X_FRAME_OPTIONS_ALLOW_FROM.

I created a PR because I'm not sure if this is helpful for other people or just a custom hack that bloats the recipe :D

This introduces new env variables to configure nextloud to be embedded via iframe on an external site. Setting X_FRAME_OPTIONS_ENABLED=1 will configure nginx and nextcloud to set X-Frame-Options and CSP headers to allow the domain configured in X_FRAME_OPTIONS_ALLOW_FROM. I created a PR because I'm not sure if this is helpful for other people or just a custom hack that bloats the recipe :D
yksflip added 1 commit 2022-08-31 13:51:36 +00:00
add headers to embed nextcloud in frame on external site
Some checks failed
continuous-integration/drone/pr Build is failing
e8a8f636d0
This introduces new env variables to configure nextloud to be embedded via
iframe on an external site.
Setting X_FRAME_OPTIONS_ENABLED=1 will configure nginx and nextcloud to
set X-Frame-Options and CSP headers to allow the domain configured in
X_FRAME_OPTIONS_ALLOW_FROM.
decentral1se approved these changes 2022-08-31 14:02:20 +00:00
decentral1se left a comment
Owner

LGTM! I guess if someone needs it (you :)) then another might! It follows the usual dance of overriding things (i.e. entrypoint.sh) so it fits for me. I won't use this though so maybe someone else can weigh in. Feel free to merge imho.

LGTM! I guess if someone needs it (you :)) then another might! It follows the usual dance of overriding things (i.e. `entrypoint.sh`) so it fits for me. I won't use this though so maybe someone else can weigh in. Feel free to merge imho.
yksflip merged commit 16ad6c22ea into main 2022-09-02 14:32:05 +00:00
Sign in to join this conversation.
No description provided.