Skip to content

Commit 3e77059

Browse files
committed
various fixes
1 parent a13b602 commit 3e77059

File tree

2 files changed

+21
-10
lines changed

2 files changed

+21
-10
lines changed

api/openapi.yaml

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,10 @@ components:
144144
type: string
145145
metricsServerCert:
146146
type: string
147-
metricsAllowOrigin:
148-
type: string
147+
metricsAllowOrigins:
148+
type: array
149+
items:
150+
type: string
149151
metricsTrustedProxies:
150152
type: array
151153
items:
@@ -162,8 +164,10 @@ components:
162164
type: string
163165
pprofServerCert:
164166
type: string
165-
pprofAllowOrigin:
166-
type: string
167+
pprofAllowOrigins:
168+
type: array
169+
items:
170+
type: string
167171
pprofTrustedProxies:
168172
type: array
169173
items:
@@ -180,8 +184,10 @@ components:
180184
type: string
181185
playbackServerCert:
182186
type: string
183-
playbackAllowOrigin:
184-
type: string
187+
playbackAllowOrigins:
188+
type: array
189+
items:
190+
type: string
185191
playbackTrustedProxies:
186192
type: array
187193
items:
@@ -256,8 +262,10 @@ components:
256262
type: string
257263
hlsServerCert:
258264
type: string
259-
hlsAllowOrigin:
260-
type: string
265+
hlsAllowOrigins:
266+
type: array
267+
items:
268+
type: string
261269
hlsTrustedProxies:
262270
type: array
263271
items:
@@ -291,8 +299,10 @@ components:
291299
type: string
292300
webrtcServerCert:
293301
type: string
294-
webrtcAllowOrigin:
295-
type: string
302+
webrtcAllowOrigins:
303+
type: array
304+
items:
305+
type: string
296306
webrtcTrustedProxies:
297307
type: array
298308
items:

internal/conf/allowed_origins.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
package conf
22

3+
// AllowedOrigins is a list of allowed CORS origins.
34
type AllowedOrigins []string

0 commit comments

Comments
 (0)