mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-24 06:28:23 +01:00
update dokuwiki
This commit is contained in:
@@ -22,4 +22,3 @@ VOLUME /var/www/html/data/pages \
|
|||||||
/var/www/html/data/media_meta \
|
/var/www/html/data/media_meta \
|
||||||
/var/www/html/data/attic \
|
/var/www/html/data/attic \
|
||||||
/var/www/html/conf
|
/var/www/html/conf
|
||||||
|
|
||||||
|
|||||||
@@ -15,14 +15,14 @@ http {
|
|||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name _;
|
server_name _;
|
||||||
|
|
||||||
client_max_body_size 4M;
|
client_max_body_size 4M;
|
||||||
client_body_buffer_size 128k;
|
client_body_buffer_size 128k;
|
||||||
|
|
||||||
root /var/www/html;
|
root /var/www/html;
|
||||||
index doku.php;
|
index doku.php;
|
||||||
|
|
||||||
location ~ /(data/|conf/|bin/|inc/) { deny all; }
|
location ~ /(data/|conf/|bin/|inc/) {
|
||||||
|
deny all;
|
||||||
|
}
|
||||||
|
|
||||||
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
|
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
|
||||||
expires 31536000s;
|
expires 31536000s;
|
||||||
@@ -31,7 +31,9 @@ http {
|
|||||||
log_not_found off;
|
log_not_found off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / { try_files $uri $uri/ @dokuwiki; }
|
location / {
|
||||||
|
try_files $uri $uri/ @dokuwiki;
|
||||||
|
}
|
||||||
|
|
||||||
location @dokuwiki {
|
location @dokuwiki {
|
||||||
rewrite ^/_media/(.*) /lib/exe/fetch.php?media=$1 last;
|
rewrite ^/_media/(.*) /lib/exe/fetch.php?media=$1 last;
|
||||||
|
|||||||
@@ -15,14 +15,14 @@ http {
|
|||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name _;
|
server_name _;
|
||||||
|
|
||||||
client_max_body_size 4M;
|
client_max_body_size 4M;
|
||||||
client_body_buffer_size 128k;
|
client_body_buffer_size 128k;
|
||||||
|
|
||||||
root /var/www/html;
|
root /var/www/html;
|
||||||
index doku.php;
|
index doku.php;
|
||||||
|
|
||||||
location ~ /(data/|conf/|bin/|inc/) { deny all; }
|
location ~ /(data/|conf/|bin/|inc/) {
|
||||||
|
deny all;
|
||||||
|
}
|
||||||
|
|
||||||
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
|
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
|
||||||
expires 31536000s;
|
expires 31536000s;
|
||||||
@@ -31,7 +31,9 @@ http {
|
|||||||
log_not_found off;
|
log_not_found off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / { try_files $uri $uri/ @dokuwiki; }
|
location / {
|
||||||
|
try_files $uri $uri/ @dokuwiki;
|
||||||
|
}
|
||||||
|
|
||||||
location @dokuwiki {
|
location @dokuwiki {
|
||||||
rewrite ^/_media/(.*) /lib/exe/fetch.php?media=$1 last;
|
rewrite ^/_media/(.*) /lib/exe/fetch.php?media=$1 last;
|
||||||
|
|||||||
Reference in New Issue
Block a user