This repository was archived by the owner on Sep 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.lua
More file actions
62 lines (60 loc) · 1.54 KB
/
Copy pathconfig.lua
File metadata and controls
62 lines (60 loc) · 1.54 KB
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
local config = require 'lapis.config'
config('development', {
postgres = {
host = '127.0.0.1',
user = 'postgres',
password = 'password',
database = 'neko-chat',
},
jwt = {
public = os.getenv('AUTH_PUBLIC'),
private = os.getenv('AUTH_PRIVATE'),
voice = os.getenv('AUTH_VOICE')
},
code_cache = 'off',
default_profile_pictures = {
'img1',
'img2'
},
voice_servers = {
['56186404-d176-44e5-9176-b05b0f1e5c02'] = {
public_url = 'ws://localhost:8080',
private_url = 'http://host.docker.internal:8081'
}
},
voice_token = os.getenv('VOICE_TOKEN'),
ssl_certificate = '/etc/ssl/cert.pem',
port = 8086,
pushpin = 'http://127.0.0.1:5561',
resolver = '1.1.1.1'
})
config('production', {
postgres = {
host = 'db.innatical.com',
user = 'octii',
password = os.getenv('DB_PASSWORD'),
database = 'octii',
},
jwt = {
public = os.getenv('AUTH_PUBLIC'),
private = os.getenv('AUTH_PRIVATE'),
voice = os.getenv('AUTH_VOICE_PRIVATE')
},
code_cache = 'on',
default_profile_pictures = {
'https://cdn.octii.chat/assets/default.webp'
},
voice_servers = {
['8f50bcb4-996e-4182-8f78-abdc6cdf7756'] = {
public_url = 'wss://voice.octii.chat',
private_url = 'https://admin.voice.octii.chat',
}
},
voice_token = os.getenv('VOICE_TOKEN'),
ssl_certificate = '/etc/ssl/cert.pem',
port = 8086,
pushpin = os.getenv('PUSHPIN_ADDR'),
push = 'http://push:8080',
resolver = '1.1.1.1',
subscriptions_webhook = os.getenv('SUBSCRIPTIONS_WEBHOOK')
})