1 |
197 |
ahitrov |
############################################################################# |
2 |
|
|
# |
3 |
|
|
# Параметры данного шаблона необходимо ВРУЧНУЮ добавить в config.mk проекта |
4 |
|
|
# и привести в соответствие с требованиями проекта |
5 |
|
|
# |
6 |
|
|
############################################################################# |
7 |
|
|
|
8 |
|
|
PLUGINS += session |
9 |
|
|
PROJECT_REQUIRED += Apache-Session |
10 |
|
|
PROJECT_REQUIRED += JSON-XS |
11 |
|
|
PROJECT_REQUIRED += P-WebFetcher |
12 |
|
|
|
13 |
|
|
### Необязательный параметр, default = lsid |
14 |
|
|
SESSION_COOKIE_NAME = lsid |
15 |
|
|
REWRITE += SESSION_COOKIE_NAME |
16 |
|
|
|
17 |
|
|
ifeq (${DEVELOPMENT}, YES) |
18 |
|
|
|
19 |
|
|
SESSION_DOMAIN = |
20 |
|
|
SESSION_STORAGE = POSTGRES |
21 |
|
|
SESSION_LIFETIME = 24 |
22 |
|
|
SESSION_EXPIRES = +10d |
23 |
|
|
|
24 |
|
|
else |
25 |
|
|
|
26 |
|
|
SESSION_DOMAIN = |
27 |
|
|
SESSION_STORAGE = POSTGRES |
28 |
|
|
SESSION_LIFETIME = 24 |
29 |
|
|
SESSION_EXPIRES = +10d |
30 |
|
|
|
31 |
|
|
endif |
32 |
|
|
|
33 |
|
|
REWRITE += SESSION_STORAGE SESSION_DOMAIN SESSION_LIFETIME SESSION_EXPIRES |
34 |
|
|
|
35 |
|
|
######################################################################## |
36 |
|
|
# |
37 |
|
|
# SESSION_DOMAIN |
38 |
|
|
# Домен, на котором отвечает проект. Можно не указывать |
39 |
|
|
# SESSION_STORAGE |
40 |
|
|
# Контейнер для хранения сессий. Варианты: POSTGRES и FILE |
41 |
|
|
# SESSION_LIFETIME |
42 |
|
|
# Время жизни сессий до автоочистки. Задается в часах, используется |
43 |
|
|
# при включении в crontab проекта скрипта из services |
44 |
|
|
# SESSION_EXPIRES |
45 |
|
|
# Время жизни куки сессии. Задается в формате Apache |
46 |
|
|
# |
47 |
|
|
######################################################################## |
48 |
|
|
|
49 |
|
|
|
50 |
|
|
### AUTH::FaceBook |
51 |
|
|
###################################### |
52 |
|
|
FACEBOOK_APP_ID = |
53 |
|
|
FACEBOOK_APP_SECRET = |
54 |
|
|
FACEBOOK_REDIRECT_URL = |
55 |
|
|
FACEBOOK_USER_POST_URL = |
56 |
|
|
|
57 |
240 |
ahitrov |
REWRITE += FACEBOOK_APP_ID FACEBOOK_APP_SECRET FACEBOOK_REDIRECT_URL FACEBOOK_USER_POST_URL |
58 |
197 |
ahitrov |
|
59 |
240 |
ahitrov |
|
60 |
|
|
### AUTH::VKontakte |
61 |
|
|
###################################### |
62 |
|
|
VK_APP_ID = |
63 |
|
|
VK_APP_SECRET = |
64 |
|
|
VK_REDIRECT_URL = |
65 |
|
|
VK_USER_POST_URL = |
66 |
|
|
|
67 |
|
|
REWRITE += VK_APP_ID VK_APP_SECRET VK_REDIRECT_URL VK_USER_POST_URL |
68 |
|
|
|
69 |
|
|
|
70 |
242 |
ahitrov |
### AUTH::Mailru |
71 |
|
|
###################################### |
72 |
|
|
MAILRU_APP_ID = |
73 |
|
|
MAILRU_APP_SECRET = |
74 |
|
|
MAILRU_REDIRECT_URL = |
75 |
|
|
MAILRU_USER_POST_URL = |
76 |
|
|
|
77 |
|
|
REWRITE += MAILRU_APP_ID MAILRU_APP_SECRET MAILRU_REDIRECT_URL MAILRU_USER_POST_URL |
78 |
|
|
|
79 |
|
|
|
80 |
246 |
ahitrov |
### AUTH::Google |
81 |
|
|
###################################### |
82 |
|
|
GOOGLE_APP_ID = |
83 |
|
|
GOOGLE_APP_SECRET = |
84 |
|
|
GOOGLE_REDIRECT_URL = |
85 |
|
|
GOOGLE_USER_POST_URL = |
86 |
|
|
|
87 |
|
|
REWRITE += GOOGLE_APP_ID GOOGLE_APP_SECRET GOOGLE_REDIRECT_URL GOOGLE_USER_POST_URL |
88 |
|
|
|
89 |
|
|
# Optional. For email request: |
90 |
|
|
GOOGLE_SCOPE = https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email |
91 |
|
|
REWRITE += GOOGLE_SCOPE |
92 |
|
|
|
93 |
197 |
ahitrov |
CONNECTION_TIMEOUT = 3 |
94 |
|
|
|
95 |
246 |
ahitrov |
|
96 |
197 |
ahitrov |
PROJECT_REQUIRED += Crypt-SSLeay |