Fix nextcloud X-Frame-Options warning

This commit is contained in:
Eric Nemchik 2022-10-28 08:26:39 -05:00
parent 53d27770a6
commit 3e5a3962b6
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
# 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 ");":
@ -31,6 +31,7 @@ server {
set $upstream_proto https;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
proxy_hide_header X-Frame-Options;
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
# located at /config/www/nextcloud/config/config.php and add the following lines before the ");":
# 'trusted_proxies' => ['swag'],
@ -32,6 +32,7 @@ location ^~ /nextcloud/ {
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
rewrite /nextcloud(.*) $1 break;
proxy_hide_header X-Frame-Options;
proxy_max_temp_file_size 2048m;
proxy_set_header Range $http_range;
proxy_set_header If-Range $http_if_range;