1 |
197 |
ahitrov |
############################################################################# |
2 |
|
|
# |
3 |
|
|
# Параметры данного шаблона необходимо ВРУЧНУЮ добавить в config.mk проекта |
4 |
|
|
# и привести в соответствие с требованиями проекта |
5 |
|
|
# |
6 |
|
|
############################################################################# |
7 |
|
|
|
8 |
|
|
PLUGINS += session |
9 |
254 |
ahitrov |
PROJECT_REQUIRED += Apache-Session Apache-Session-Memcached |
10 |
197 |
ahitrov |
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 |
254 |
ahitrov |
########################################################################### |
36 |
197 |
ahitrov |
# |
37 |
|
|
# SESSION_DOMAIN |
38 |
|
|
# Домен, на котором отвечает проект. Можно не указывать |
39 |
|
|
# SESSION_STORAGE |
40 |
254 |
ahitrov |
# Контейнер для хранения сессий. Варианты: POSTGRES, MEMCACHED, FILE |
41 |
|
|
# Для работы сессий через Memcached в конфиге проекта или инсталляции |
42 |
|
|
# должны быть установлены параметры |
43 |
|
|
# MEMCACHED_ENABLE = 1 |
44 |
|
|
# MEMCACHED_SERVERS = список серверов с портами, разделенный пробелами |
45 |
197 |
ahitrov |
# SESSION_LIFETIME |
46 |
|
|
# Время жизни сессий до автоочистки. Задается в часах, используется |
47 |
|
|
# при включении в crontab проекта скрипта из services |
48 |
|
|
# SESSION_EXPIRES |
49 |
|
|
# Время жизни куки сессии. Задается в формате Apache |
50 |
|
|
# |
51 |
254 |
ahitrov |
########################################################################### |
52 |
197 |
ahitrov |
|
53 |
|
|
|
54 |
|
|
### AUTH::FaceBook |
55 |
|
|
###################################### |
56 |
|
|
FACEBOOK_APP_ID = |
57 |
|
|
FACEBOOK_APP_SECRET = |
58 |
|
|
FACEBOOK_REDIRECT_URL = |
59 |
|
|
FACEBOOK_USER_POST_URL = |
60 |
|
|
|
61 |
240 |
ahitrov |
REWRITE += FACEBOOK_APP_ID FACEBOOK_APP_SECRET FACEBOOK_REDIRECT_URL FACEBOOK_USER_POST_URL |
62 |
197 |
ahitrov |
|
63 |
320 |
ahitrov |
### if additional rights needed: |
64 |
|
|
FACEBOOK_SCOPE = |
65 |
|
|
REWRITE += FACEBOOK_SCOPE |
66 |
240 |
ahitrov |
|
67 |
|
|
### AUTH::VKontakte |
68 |
|
|
###################################### |
69 |
|
|
VK_APP_ID = |
70 |
|
|
VK_APP_SECRET = |
71 |
|
|
VK_REDIRECT_URL = |
72 |
|
|
VK_USER_POST_URL = |
73 |
|
|
|
74 |
|
|
REWRITE += VK_APP_ID VK_APP_SECRET VK_REDIRECT_URL VK_USER_POST_URL |
75 |
|
|
|
76 |
512 |
ahitrov |
### if additional rights needed: |
77 |
|
|
VK_SCOPE = |
78 |
|
|
REWRITE += VK_SCOPE |
79 |
240 |
ahitrov |
|
80 |
242 |
ahitrov |
### AUTH::Mailru |
81 |
|
|
###################################### |
82 |
|
|
MAILRU_APP_ID = |
83 |
|
|
MAILRU_APP_SECRET = |
84 |
|
|
MAILRU_REDIRECT_URL = |
85 |
|
|
MAILRU_USER_POST_URL = |
86 |
|
|
|
87 |
|
|
REWRITE += MAILRU_APP_ID MAILRU_APP_SECRET MAILRU_REDIRECT_URL MAILRU_USER_POST_URL |
88 |
|
|
|
89 |
|
|
|
90 |
246 |
ahitrov |
### AUTH::Google |
91 |
|
|
###################################### |
92 |
|
|
GOOGLE_APP_ID = |
93 |
|
|
GOOGLE_APP_SECRET = |
94 |
|
|
GOOGLE_REDIRECT_URL = |
95 |
|
|
GOOGLE_USER_POST_URL = |
96 |
|
|
|
97 |
|
|
REWRITE += GOOGLE_APP_ID GOOGLE_APP_SECRET GOOGLE_REDIRECT_URL GOOGLE_USER_POST_URL |
98 |
|
|
|
99 |
|
|
# Optional. For email request: |
100 |
|
|
GOOGLE_SCOPE = https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email |
101 |
|
|
REWRITE += GOOGLE_SCOPE |
102 |
|
|
|
103 |
254 |
ahitrov |
|
104 |
197 |
ahitrov |
CONNECTION_TIMEOUT = 3 |
105 |
|
|
PROJECT_REQUIRED += Crypt-SSLeay |