-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.yaml
47 lines (38 loc) · 1.25 KB
/
app.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
runtime: php55
api_version: 1
handlers:
# Wordpress core as-is
- url: /wp/(.*\.(htm|html|css|js|ico|jpg|jpeg|png|gif|woff|ttf|otf|eot|svg))
static_files: web/wp/\1
upload: web/wp/.*\.(htm|html|css|js|ico|jpg|jpeg|png|gif|woff|ttf|otf|eot|svg)$
application_readable: true
# User content: themes, plugins, uploads
- url: /app/(.*\.(htm|html|css|js|ico|jpg|jpeg|png|gif|woff|ttf|otf|eot|svg))
static_files: web/app/\1
upload: web/app/.*\.(htm|html|css|js|ico|jpg|jpeg|png|gif|woff|ttf|otf|eot|svg)$
application_readable: true
# Entry URL for wp-admin
- url: /wp/wp-admin/
script: web/wp/wp-admin/index.php
secure: always
# All other wp-admin components
- url: /wp/wp-admin/(.+)
script: web/wp/wp-admin/\1
secure: always
# Handle wp-login separately, requires https
- url: /wp/wp-login.php
script: web/wp/wp-login.php
secure: always
# Handle wp-cron separatelyu, only admin (see cron.yaml) can call
- url: /wp/wp-cron.php
script: web/wp/wp-cron.php
login: admin
# Handle all other WP core entrypoints
- url: /wp/wp-(.+).php
script: web/wp/wp-\1.php
- url: /wp/xmlrpc.php
script: web/wp/xmlrpc.php
# Other URLs are handled by the main index.php (ie. bedrock),
# which then loads the config, WP core etc.
- url: /(.+)?/?
script: web/index.php