forked from YunYinORG/print
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yaml
21 lines (21 loc) · 998 Bytes
/
config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
name: nkuprint
handle:
- rewrite: if(!is_dir() && !is_file() && path~"^(.*)$") goto "index.php/$1"
- compress: if ( out_header["Content-type"] ~ "text/css" ) compress
- compress: if ( out_header["Content-type"] ~ "text/javascript" ) compress
- compress: if ( out_header["Content-type"] ~ "image/png" ) compress
- compress: if ( out_header["Content-type"] ~ "image/jpeg" ) compress
- compress: if ( out_header["Content-type"] ~ "text/html" ) compress
- hostaccess: if(path == "/backup.php") allow "10.0.0.0/8"
- hostaccess: if (%{REQUEST_URI} ~*"/Common/") allow "0.0"
- hostaccess: if (%{REQUEST_URI} ~*"/API/") allow "0.0"
- hostaccess: if (%{REQUEST_URI} ~*"/Print/") allow "0.0"
- hostaccess: if (%{REQUEST_URI} ~*"/ThinkPHP/") allow "0.0"
- hostaccess: if (path ~*"/.htacesss") allow "0.0"
- expire: if( path ~ "Public" ) time 2592000
- expire: if( path ~ "favicon.ico" ) time 360000
cron:
- description: backup
url: /backup.php
schedule: every day of month 04:32
timezone: Beijing