forked from giongto35/cloud-game
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yaml
165 lines (157 loc) · 4.27 KB
/
config.yaml
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
#
# Application configuration file
#
# application environment (dev, staging, prod)
environment: dev
coordinator:
# address if the server want to connect directly to debug
debugHost:
# games library
library:
# some directory which is gonna be the root folder for the library
# where games are stored
basePath: assets/games
# an explicit list of supported file extensions
# which overrides Libretro emulator ROMs configs
supported:
# a list of ignored words in the ROM filenames
ignored:
- neogeo
- pgm
# print some additional info
verbose: true
# enable library directory live reload
# (experimental)
watchMode: false
monitoring:
port: 6601
# enable Go profiler HTTP server
profilingEnabled: false
metricEnabled: false
urlPrefix: /coordinator
# the public domain of the coordinator
publicDomain: http://localhost:8000
# specify the worker address that the client can ping (with protocol and port)
pingServer:
# HTTP(S) server config
server:
port: 8000
httpsPort: 443
httpsKey:
httpsChain:
worker:
network:
# a coordinator address to connect to
coordinatorAddress: localhost:8000
# ISO Alpha-2 country code to group workers by zones
zone:
monitoring:
# monitoring server port
port: 6601
profilingEnabled: false
# monitoring server URL prefix
metricEnabled: true
urlPrefix: /worker
server:
port: 9000
httpsPort: 443
httpsKey:
httpsChain:
emulator:
# set output viewport scale factor
scale: 1
aspectRatio:
# enable aspect ratio changing
# (experimental)
keep: false
# recalculate emulator game frame size to the given WxH
width: 320
height: 240
libretro:
cores:
paths:
libs: assets/cores
configs: assets/cores
# Config params for Libretro cores repository,
# available types are:
# - buildbot (the default Libretro nightly repository)
# - github (GitHub raw repository with a similar structure to buildbot)
# - raw (just a link to a zip file extracted as is)
repo:
# enable auto-download for the list of cores (list->lib)
sync: true
main:
type: buildbot
url: https://buildbot.libretro.com/nightly
# if repo has file compression
compression: zip
# a secondary repo to use i.e. for not found in the main cores
secondary:
type: github
url: https://github.com/sergystepanov/libretro-spiegel/blob/main
compression: zip
# Libretro core configuration
#
# Available config params:
# - lib (string)
# - config (string)
# - roms ([]string)
# - width (int)
# - height (int)
# - ratio (float)
# - isGlAllowed (bool)
# - usesLibCo (bool)
# - hasMultitap (bool)
list:
gba:
lib: mgba_libretro
roms: [ "gba", "gbc" ]
width: 240
height: 160
pcsx:
lib: pcsx_rearmed_libretro
config: pcsx_rearmed_libretro.cfg
roms: [ "cue" ]
width: 350
height: 240
nes:
lib: nestopia_libretro
roms: [ "nes" ]
width: 256
height: 240
snes:
lib: snes9x_libretro
roms: [ "smc", "sfc", "swc", "fig", "bs" ]
width: 256
height: 224
hasMultitap: true
n64:
lib: mupen64plus_next_libretro
config: mupen64plus_next_libretro.cfg
roms: [ "n64", "v64", "z64" ]
width: 320
height: 240
isGlAllowed: true
usesLibCo: true
encoder:
audio:
channels: 2
# audio frame duration needed for WebRTC (Opus)
frame: 20
frequency: 48000
# run without a game
# (experimental)
withoutGame: false
webrtc:
# a list of STUN/TURN servers for the client
iceServers:
- url: stun:stun.l.google.com:19302
# instead of random unlimited port range for
# WebRTC UDP connections, these params
# define ICE candidates port range explicitly
icePorts:
min:
max:
# override ICE candidate IP, see: https://github.com/pion/webrtc/issues/835,
# can be used for Docker bridged network internal IP override
iceIpMap: