-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.ts
102 lines (98 loc) · 2.35 KB
/
config.ts
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
import { augmentConfiguration } from 'deno_config';
export const Config = {
database: {
enabled: true,
host: '127.0.0.1',
port: 27017,
name: '{{app.id}}',
connectionString: '',
},
http: {
enabled: true,
port: 8080,
},
media: {
cwd: '/home/yooneskh/{{app.id}}-server',
directory: 'media',
baseUrl: 'https://api.{{app.domain}}/',
},
captcha: {
lifetime: 1000 * 60 * 3,
},
authentication: {
staticVerificationCode: '111111',
randomDigitsCount: 6,
tokenLifetime: 1000 * 60 * 60 * 24 * 30,
},
authorization: {
defaultPermissions: ['user.**'],
},
payment: {
core: {
verificationCallback: 'https://api.{{app.domain}}/api/paytickets',
},
zarinpal: {
merchantId: '',
sandbox: true,
},
default: {
locale: 'en' as 'en' | 'fa',
favicon: '{{app.website.url}}/favicon.ico',
font: 'https://cdn.khoshghadam.com/font/roboto/roboto.css',
title: '{{app.name.en}} | Payment Result',
callback: '{{app.website.url}}',
supportCallback: '{{app.website.url}}',
},
en: {
locale: 'en' as 'en' | 'fa',
favicon: '{{app.website.url}}/favicon.ico',
font: 'https://cdn.khoshghadam.com/font/roboto/roboto.css',
title: '{{app.name.en}} | Payment Result',
callback: '{{app.website.url}}',
supportCallback: '{{app.website.url}}',
},
fa: {
locale: 'fa' as 'en' | 'fa',
favicon: '{{app.website.url}}/favicon.ico',
font: 'https://cdn.khoshghadam.com/font/iryekan/iryekan.css',
title: '{{app.name.fa}} | نتیجه پرداخت',
callback: '{{app.website.url}}',
supportCallback: '{{app.website.url}}',
},
},
notifications: {
kavenegar: {
apiKey: '',
},
sendInBlue: {
apiKey: '',
},
smtp: {
host: '',
port: 25,
username: '',
password: '',
},
},
accounting: {
specialAccounts: [
{
name: 'Global Source',
identifier: 'global-source',
balance: 0,
acceptsInput: false,
acceptsOutput: true,
allowsNegativeBalance: true,
},
{
name: 'Global Drain',
identifier: 'global-drain',
balance: 0,
acceptsInput: true,
acceptsOutput: false,
allowsNegativeBalance: false,
},
],
},
};
augmentConfiguration(Config);