Merge pull request #501 from linuxserver/nextcloud-header

Fix nextcloud X-Frame-Options warning
This commit is contained in:
Eric Nemchik 2022-10-29 08:01:37 -05:00 committed by GitHub
commit 32ecf44fa9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -1,4 +1,4 @@
## Version 2021/05/18 ## Version 2022/10/28
# make sure that your dns has a cname set for nextcloud # make sure that your dns has a cname set for nextcloud
# assuming this container is called "swag", edit your nextcloud container's config # assuming this container is called "swag", edit your nextcloud container's config
# located at /config/www/nextcloud/config/config.php and add the following lines before the ");": # located at /config/www/nextcloud/config/config.php and add the following lines before the ");":
@ -31,6 +31,7 @@ server {
set $upstream_proto https; set $upstream_proto https;
proxy_pass $upstream_proto://$upstream_app:$upstream_port; proxy_pass $upstream_proto://$upstream_app:$upstream_port;
proxy_hide_header X-Frame-Options;
proxy_max_temp_file_size 2048m; proxy_max_temp_file_size 2048m;
} }
} }

View file

@ -1,4 +1,4 @@
## Version 2021/07/14 ## Version 2022/10/28
# Assuming this container is called "swag", edit your nextcloud container's config # Assuming this container is called "swag", edit your nextcloud container's config
# located at /config/www/nextcloud/config/config.php and add the following lines before the ");": # located at /config/www/nextcloud/config/config.php and add the following lines before the ");":
# 'trusted_proxies' => ['swag'], # 'trusted_proxies' => ['swag'],
@ -32,6 +32,7 @@ location ^~ /nextcloud/ {
proxy_pass $upstream_proto://$upstream_app:$upstream_port; proxy_pass $upstream_proto://$upstream_app:$upstream_port;
rewrite /nextcloud(.*) $1 break; rewrite /nextcloud(.*) $1 break;
proxy_hide_header X-Frame-Options;
proxy_max_temp_file_size 2048m; proxy_max_temp_file_size 2048m;
proxy_set_header Range $http_range; proxy_set_header Range $http_range;
proxy_set_header If-Range $http_if_range; proxy_set_header If-Range $http_if_range;