File tree 4 files changed +9
-16
lines changed
4 files changed +9
-16
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -134,6 +134,11 @@ RUN cd /var/www/foswiki && \
134
134
rm -fr /var/www/foswiki/working/configure/download/* && \
135
135
rm -fr /var/www/foswiki/working/configure/backup/*
136
136
137
+ RUN cd /var/www/foswiki && \
138
+ tools/configure -save -set {PermittedRedirectHostUrls}='http://docker-foswiki.local:8765,https://docker-foswiki.local:8443' && \
139
+ tools/configure -save -set {XSendFileContrib}{Header}='X-Accel-Redirect' && \
140
+ tools/configure -save -set {XSendFileContrib}{Location}='/files'
141
+
137
142
RUN mkdir -p /run/nginx && \
138
143
mkdir -p /etc/nginx/conf.d
139
144
Original file line number Diff line number Diff line change @@ -57,13 +57,10 @@ server {
57
57
58
58
# any other static files need to be sanctioned by the foswiki backened
59
59
location /pub {
60
- root $foswiki_root;
61
- rewrite ^/pub/(.*)$ /bin/viewfile/$1;
62
- # or by XSendFileContrib using
63
- #
60
+ # The following setting must be in LocalSite.cfg
64
61
# {XSendFileContrib}{Header} = 'X-Accel-Redirect';
65
62
# {XSendFileContrib}{Location} = '/files';
66
- # rewrite ^/pub/(.*)$ /bin/xsendfile/$1;
63
+ rewrite ^/pub/(.*)$ /bin/xsendfile/$1;
67
64
}
68
65
69
66
# internal location that sendfile serves sanctioned static files from
Original file line number Diff line number Diff line change @@ -44,13 +44,10 @@ server {
44
44
45
45
# any other static files need to be sanctioned by the foswiki backened
46
46
location /pub {
47
- root $foswiki_root;
48
- rewrite ^/pub/(.*)$ /bin/viewfile/$1;
49
- # or by XSendFileContrib using
50
- #
47
+ # The following setting must be in LocalSite.cfg
51
48
# {XSendFileContrib}{Header} = 'X-Accel-Redirect';
52
49
# {XSendFileContrib}{Location} = '/files';
53
- # rewrite ^/pub/(.*)$ /bin/xsendfile/$1;
50
+ rewrite ^/pub/(.*)$ /bin/xsendfile/$1;
54
51
}
55
52
56
53
# internal location that sendfile serves sanctioned static files from
You can’t perform that action at this time.
0 commit comments