Skip to content

Commit 86e1ecb

Browse files
committed
Update site config for v17
1 parent 2e52336 commit 86e1ecb

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
209209

210210
## Versions
211211

212+
* **18.11.19:** - Nginx default site config updated for v17 (existing users should delete `/config/nginx/site-confs/default` and restart the container).
212213
* **28.10.19:** - Change cronjob to run every 5 minutes.
213214
* **24.10.19:** - Nginx default site config updated due to CVE-2019-11043 (existing users should delete `/config/nginx/site-confs/default` and restart the container).
214215
* **14.07.19:** - Download nextcloud during build time.

readme-vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ app_setup_block: |
6060
6161
# changelog
6262
changelogs:
63+
- { date: "18.11.19:", desc: "Nginx default site config updated for v17 (existing users should delete `/config/nginx/site-confs/default` and restart the container)." }
6364
- { date: "28.10.19:", desc: "Change cronjob to run every 5 minutes." }
6465
- { date: "24.10.19:", desc: "Nginx default site config updated due to CVE-2019-11043 (existing users should delete `/config/nginx/site-confs/default` and restart the container)." }
6566
- { date: "14.07.19:", desc: "Download nextcloud during build time." }

root/defaults/default

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ server {
1717
add_header X-XSS-Protection "1; mode=block";
1818
add_header X-Robots-Tag none;
1919
add_header X-Download-Options noopen;
20+
add_header X-Frame-Options "SAMEORIGIN";
2021
add_header X-Permitted-Cross-Domain-Policies none;
2122
add_header Referrer-Policy no-referrer;
2223
fastcgi_hide_header X-Powered-By;
@@ -67,18 +68,19 @@ server {
6768
try_files $uri/ =404;
6869
index index.php;
6970
}
70-
location ~ \.(?:css|js|woff2?|svg|gif)$ {
71+
location ~ \.(?:css|js|woff2?|svg|gif|map)$ {
7172
try_files $uri /index.php$request_uri;
7273
add_header Cache-Control "public, max-age=15778463";
7374
add_header X-Content-Type-Options nosniff;
7475
add_header X-XSS-Protection "1; mode=block";
7576
add_header X-Robots-Tag none;
7677
add_header X-Download-Options noopen;
78+
add_header X-Frame-Options "SAMEORIGIN";
7779
add_header X-Permitted-Cross-Domain-Policies none;
7880
add_header Referrer-Policy no-referrer;
7981
access_log off;
8082
}
81-
location ~ \.(?:png|html|ttf|ico|jpg|jpeg)$ {
83+
location ~ \.(?:png|html|ttf|ico|jpg|jpeg|bcmap)$ {
8284
try_files $uri /index.php$request_uri;
8385
access_log off;
8486
}

0 commit comments

Comments
 (0)