1 |
243 |
ahitrov |
############################################################################# |
2 |
|
|
# |
3 |
|
|
# ��������� ������� ������� ���������� ������� �������� � config.mk ������� |
4 |
|
|
# � �������� � ������������ � ������������ ������� |
5 |
|
|
# |
6 |
|
|
############################################################################# |
7 |
194 |
ahitrov |
|
8 |
243 |
ahitrov |
PLUGINS += session |
9 |
253 |
ahitrov |
PROJECT_REQUIRED += Apache-Session Apache-Session-Memcached |
10 |
243 |
ahitrov |
PROJECT_REQUIRED += JSON-XS |
11 |
|
|
PROJECT_REQUIRED += P-WebFetcher |
12 |
194 |
ahitrov |
|
13 |
243 |
ahitrov |
### �������������� ��������, 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 |
253 |
ahitrov |
########################################################################### |
36 |
243 |
ahitrov |
# |
37 |
|
|
# SESSION_DOMAIN |
38 |
|
|
# �����, �� ������� �������� ������. ����� �� ��������� |
39 |
|
|
# SESSION_STORAGE |
40 |
253 |
ahitrov |
# ��������� ��� �������� ������. ��������: POSTGRES, MEMCACHED, FILE |
41 |
|
|
# ��� ������ ������ ����� Memcached � ������� ������� ��� ����������� |
42 |
|
|
# ������ ���� ����������� ��������� |
43 |
|
|
# MEMCACHED_ENABLE = 1 |
44 |
|
|
# MEMCACHED_SERVERS = ������ �������� � �������, ����������� ��������� |
45 |
243 |
ahitrov |
# SESSION_LIFETIME |
46 |
|
|
# ����� ����� ������ �� �����������. �������� � �����, ������������ |
47 |
|
|
# ��� ��������� � crontab ������� ������� �� services |
48 |
|
|
# SESSION_EXPIRES |
49 |
|
|
# ����� ����� ���� ������. �������� � ������� Apache |
50 |
|
|
# |
51 |
253 |
ahitrov |
########################################################################### |
52 |
243 |
ahitrov |
|
53 |
|
|
|
54 |
194 |
ahitrov |
### AUTH::FaceBook |
55 |
|
|
###################################### |
56 |
|
|
FACEBOOK_APP_ID = |
57 |
|
|
FACEBOOK_APP_SECRET = |
58 |
|
|
FACEBOOK_REDIRECT_URL = |
59 |
|
|
FACEBOOK_USER_POST_URL = |
60 |
|
|
|
61 |
243 |
ahitrov |
REWRITE += FACEBOOK_APP_ID FACEBOOK_APP_SECRET FACEBOOK_REDIRECT_URL FACEBOOK_USER_POST_URL |
62 |
194 |
ahitrov |
|
63 |
243 |
ahitrov |
|
64 |
194 |
ahitrov |
### AUTH::VKontakte |
65 |
|
|
###################################### |
66 |
|
|
VK_APP_ID = |
67 |
|
|
VK_APP_SECRET = |
68 |
|
|
VK_REDIRECT_URL = |
69 |
|
|
VK_USER_POST_URL = |
70 |
|
|
|
71 |
243 |
ahitrov |
REWRITE += VK_APP_ID VK_APP_SECRET VK_REDIRECT_URL VK_USER_POST_URL |
72 |
194 |
ahitrov |
|
73 |
243 |
ahitrov |
|
74 |
|
|
### AUTH::Mailru |
75 |
|
|
###################################### |
76 |
|
|
MAILRU_APP_ID = |
77 |
|
|
MAILRU_APP_SECRET = |
78 |
|
|
MAILRU_REDIRECT_URL = |
79 |
|
|
MAILRU_USER_POST_URL = |
80 |
|
|
|
81 |
|
|
REWRITE += MAILRU_APP_ID MAILRU_APP_SECRET MAILRU_REDIRECT_URL MAILRU_USER_POST_URL |
82 |
|
|
|
83 |
|
|
|
84 |
194 |
ahitrov |
CONNECTION_TIMEOUT = 3 |
85 |
|
|
|
86 |
243 |
ahitrov |
PROJECT_REQUIRED += Crypt-SSLeay |
87 |
194 |
ahitrov |
PROJECT_REQUIRED += JSON-XS |