Line # | Revision | Author | |
---|---|---|---|
1 | 243 | ahitrov | ############################################################################# |
2 | # | ||
3 | # ��������� ������� ������� ���������� ������� �������� � config.mk ������� | ||
4 | # � �������� � ������������ � ������������ ������� | ||
5 | # | ||
6 | ############################################################################# | ||
7 | 194 | ahitrov | |
8 | 243 | ahitrov | PLUGINS += session |
9 | PROJECT_REQUIRED += Apache-Session | ||
10 | 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 | ######################################################################## | ||
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 | 194 | ahitrov | ### AUTH::FaceBook |
51 | ###################################### | ||
52 | FACEBOOK_APP_ID = | ||
53 | FACEBOOK_APP_SECRET = | ||
54 | FACEBOOK_REDIRECT_URL = | ||
55 | FACEBOOK_USER_POST_URL = | ||
56 | |||
57 | 243 | ahitrov | REWRITE += FACEBOOK_APP_ID FACEBOOK_APP_SECRET FACEBOOK_REDIRECT_URL FACEBOOK_USER_POST_URL |
58 | 194 | ahitrov | |
59 | 243 | ahitrov | |
60 | 194 | ahitrov | ### AUTH::VKontakte |
61 | ###################################### | ||
62 | VK_APP_ID = | ||
63 | VK_APP_SECRET = | ||
64 | VK_REDIRECT_URL = | ||
65 | VK_USER_POST_URL = | ||
66 | |||
67 | 243 | ahitrov | REWRITE += VK_APP_ID VK_APP_SECRET VK_REDIRECT_URL VK_USER_POST_URL |
68 | 194 | ahitrov | |
69 | 243 | ahitrov | |
70 | ### 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 | 194 | ahitrov | CONNECTION_TIMEOUT = 3 |
81 | |||
82 | 243 | ahitrov | PROJECT_REQUIRED += Crypt-SSLeay |
83 | 194 | ahitrov | PROJECT_REQUIRED += JSON-XS |