Skip to content

Commit db58507

Browse files
committed
Fix missing XSendFileContrib settings
1 parent e0164df commit db58507

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Diff for: Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ RUN rm -rf /var/cache/apk/* && \
130130
tools/extension_installer XSendFileContrib -r -enable install && \
131131
tools/configure -save -set {Plugins}{AutoViewTemplatePlugin}{Enabled}='0' && \
132132
tools/configure -save -set {Plugins}{LdapNgPlugin}{Enabled}='0' && \
133-
tools/configure -save -set {Plugins}{SamlLoginContrib}{Enabled}='0' && \
133+
tools/configure -save -set {XSendFileContrib}{Header}='X-Accel-Redirect' && \
134+
tools/configure -save -set {XSendFileContrib}{Location}='/files' && \
134135
rm -fr /var/www/foswiki/working/configure/download/* && \
135136
rm -fr /var/www/foswiki/working/configure/backup/* && \
136137
mkdir -p /run/nginx && \

Diff for: nginx.default.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ server {
3939
}
4040

4141
# static files that we don't need to authenticate, i.e. css and js
42-
location ~ ^/pub/(System|Applications|cache)/ {
42+
location ~ ^/pub/(System|Applications|images|cache)/ {
4343
root $foswiki_root;
4444
expires 8h;
4545
gzip_static on;

0 commit comments

Comments
 (0)