-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.yaml
117 lines (101 loc) · 2.29 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
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
application: psinque
version: 1
runtime: python27
api_version: 1
threadsafe: true
builtins:
- remote_api: off
# - admin_redirect: on
# inbound_services:
# - warmup
# Later, to receive emails, we will need to add:
# - mail
libraries:
- name: PIL
version: latest
- name: jinja2
version: latest
- name: django
version: latest
- name: lxml
version: latest
handlers:
# Start pages
- url: /
script: StartPage.app # checks if the user is logged in and redirects
secure: optional
# OpenID login handler
- url: /_ah/login_required
script: Login.app
# Static pages
- url: /static/([^/]+)
script: StaticPages.app
secure: optional
# Profile
- url: /profile/([^/]+)
script: Profile.app
login: required
- url: /uploadphoto
script: Profile.app
login: required
- url: /uploadphotopost
script: Profile.app
login: required
- url: /serveimageblob/([^/]+)?
script: Profile.app
login: required
# Personas
- url: /personas/([^/]+)
script: Personas.app
login: required
- url: /p/([^/]+)
script: Personas.app
login: required
# Psinques
- url: /psinques/([^/]+)
script: Psinques.app
login: required
# User settings
- url: /settings/([^/]+)
script: Settings.app
login: required
# Custom admin console pages
- url: /admin/([^/]+)
script: Admin.app
login: admin
# Static files
- url: /javascripts
static_dir: javascripts
- url: /stylesheets
static_dir: stylesheets
- url: /(.*\.(gif|png|jpg|svg))
static_files: static/\1
upload: static/(.*\.(gif|png|jpg|svg))
- url: /favicon.ico
static_files: static/favicon.ico
upload: static/favicon.ico
- url: /favicon_128.ico
static_files: static/favicon_128.ico
upload: static/favicon_128.ico
- url: /favicon.svg
static_files: static/favicon.svg
upload: static/favicon.svg
# CardDAV
- url: /.well-known/carddav
secure: optional
script: CardDAV.app
- url: /carddav/.*
secure: optional
script: CardDAV.app
# Web crawlers
- url: /robots.txt
static_files: robots.txt
upload: robots.txt
# Error handling
- url: /.*
script: NotFound.app
# Custom admin console pages (DOES NOT WORK: THERE IS SOME ISSUE WITH login: admin)
# admin_console:
# pages:
# - name: User profiles
# url: /admin/userprofile