· 6 years ago · Dec 01, 2019, 03:22 PM
1# REST and web socket API configuration.
2api:
3 # Enable or disable the web front end,
4 # REST and web socket API.
5 enable: false
6 # Address and port the REST and ws API
7 # will be exposed to.
8 address: :6612
9 # The client ID of the Discord application
10 # of the bots account.
11 client_id: "[yuki's client ID]"
12 # The client secret (NOT the bot token!) of
13 # the Discord application of the bots account.
14 client_secret: "Yc2CBS0ugooFuzsqaz9al0m1bTrPNTMX"
15 # A list of discord IDs which will have access
16 # to the admin panel and to general admin
17 # functions.
18 admin_ids:
19 - "[yuki's discord ID]"
20 # This will be the address, from which the
21 # web interface will be accessed from.
22 # This is needed for redirecting from the
23 # discord OAuth2 application login.
24 public_address: http://[aws-public-dns-address]
25 # TLS configuration.
26 tls:
27 # Enable TLS encryption of REST and web socket
28 # exposure.
29 enable: false
30 # Cert file location.
31 cert_file: /etc/cert/example.com/example.com.cer
32 # Key file location.
33 key_file: /etc/cert/example.com/example.com.key
34
35# Database configuration.
36database:
37 # SQLite DSN.
38 dsn: file:yuri.db.sqlite3
39
40# Discord bot configuration.
41discord:
42 # The bot token of the Discord bot application.
43 token: "[bot token]"
44 # General prefix which will always be accessable
45 # on all guilds. This should never be set to
46 # something like '.' or '-', because, the bot
47 # will ALWAYS listen to it also if the guild
48 # prefix was specified to something else.
49 general_prefix: y!
50 # The discord ID of the host of the bot.
51 # (Maybe yours ^^)
52 owner_id: "[yuki's discord id]"
53 # Roles names for specific permissions.
54 right_role_names:
55 # Role which blocks users from using
56 # the Yuri player.
57 blocked: YuriBlocked
58 # Role which allows users to use the
59 # Yuri player. If this is set to '' or
60 # '@everyone', everyone will be allowed
61 # to use Yuri except these who have the
62 # blocked role.
63 player: '@everyone'
64 # Status messages which will be displayed
65 # in the bots presence text.
66 status_shuffle:
67 # Shuffle delay.
68 delay: 10s
69 # Sttaus messages.
70 status:
71 - Yuri v.2!
72 - zekro.de
73 - github.com/zekroTJA/yuri2
74
75# Lavalink configuration.
76lavalink:
77 # Address and port of the lavalink
78 # server. If on the same machine, just
79 # take localhost as address.
80 address: localhost:2333
81 # Password defined in the Lavalink
82 # configuration.
83 password: "youshallnotpass"
84 # Sound file locations.
85 # The locatiosn will be scanned for sounds
86 # NOT recursively. Multiple directories will
87 # be treated like one, merged directory.
88 sounds_locations:
89 - "/home/ubuntu/yuri2/web/yurisounds"
90
91# Miscellaneous configuration.
92misc:
93 # Log level.
94 # 0 - critical
95 # 1 - errors
96 # 2 - warnings
97 # 3 - notice
98 # 4 - info
99 # 5 - debug
100 log_level: 4