-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathapp.yaml.sample
132 lines (104 loc) · 2.87 KB
/
app.yaml.sample
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
application: [APPLICATION-ID]
version: 1
runtime: php55
api_version: 1
default_expiration: "1d"
skip_files:
- (.*/)?\.csv$
- (.*/)?\.xlsx$
handlers:
#CRON JOBS
- url: /cron/provider_processing
script: /cron/provider_processing.php
login: admin
- url: /cron/data_updates_db
script: /cron/data_updates_db.php
login: admin
- url: /cron/data_updates_ft
script: /cron/data_updates_ft.php
login: admin
- url: /cron/lead_area_processing
script: /cron/lead_area_processing.php
login: admin
- url: /cron/predictions_report
script: /cron/predictions_report.php
login: admin
#GENERAL HANDLERS
- url: /(.*\.(htm|html|css|js|json))$
static_files: \1
upload: .*\.(htm|html|css|js|json)$
application_readable: true
- url: /(.*\.(ico|jpg|jpeg|png|gif))$
static_files: \1
upload: .*\.(ico|jpg|jpeg|png|gif)$
- url: /(.*\.(woff|woff2|ttf|otf|eot|svg))$
static_files: \1
upload: .*\.(woff|woff2|ttf|otf|eot|svg)$
- url: /admin/(.*\.(ico|jpg|jpeg|png|gif))$
static_files: \1
upload: admin/.*\.(ico|jpg|jpeg|png|gif)$
#ADMIN SITE HANDLERS
- url: /admin
script: admin/login.php
secure: always
- url: /admin/
script: admin/login.php
secure: always
- url: /admin/login.php
script: admin/login.php
secure: always
- url: /admin/page.php
script: admin/page.php
secure: always
#RESTRICTED SCRIPTS
- url: /includes/json_processing.php
script: includes/json_processing.php.php
login: admin
auth_fail_action: unauthorized
- url: /includes/predictions_report
script: includes/predictions_report.php
login: admin
auth_fail_action: unauthorized
- url: /includes/lead_area_processing
script: includes/lead_area_processing.php
login: admin
auth_fail_action: unauthorized
- url: /includes/data_updates
script: includes/data_updates.php
login: admin
auth_fail_action: unauthorized
- url: /includes/queries
script: includes/queries.php
login: admin
auth_fail_action: unauthorized
#MISC
- url: /index.php
script: index.php
- url: /index.html
script: index.php
- url: /page.php
script: page.php
- url: /(.+\.php)$
script: \1
- url: /
script: index.php
- url: /.*
script: 404.php
# [START env]
env_variables:
MYSQL_DSN: [MYSQL-DSN]
MYSQL_HOST: localhost
MYSQL_INSTANCE: [MYSQL-INSTANCE-ID]
MYSQL_USER: [MYSQL-USER]
MYSQL_PASSWORD: [MYSQL-PASSWORD]
MYSQL_DATABASE: [MYSQL-DATABASE]
MONGODB_IP: [MONGODB-IP-ADDRESS]
MONGODB_DATABASE: [MONGODB-DATABASE]
MONGODB_USER: [MONGODB-USER]
MONGODB_PASSWORD: [MONGODB-PASSWORD]
APP_EMAIL: [APP-EMAIL]
APP_ID: [APPLICATION-ID]
GOOGLE_APPLICATION_CREDENTIALS: [PATH TO GOOGLE-APP-CREDENTIALS FILE IF NOT USING APP ENGINE]
GOOGLE_SERVER_KEY: [GOOGLE-SERVER-KEY]
FIREBASE_SERVER_KEY: [FIREBASE-SERVER-KEY]
# [END env]