mirror of
https://github.com/wassname/talk.git
synced 2026-07-11 21:07:25 +08:00
[CORL-436] Embed Code (#2398)
* feat: initial implementation * fix: moved embed configuration to advanced * feat: added copy button to embed code * fix: removing unused line
This commit is contained in:
@@ -170,7 +170,7 @@ const config = convict({
|
||||
format: "optional-url",
|
||||
default: "",
|
||||
env: "STATIC_URI",
|
||||
arg: "staticUri",
|
||||
arg: "staticURI",
|
||||
},
|
||||
websocket_keep_alive_timeout: {
|
||||
doc:
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
import { GQLSettingsTypeResolver } from "coral-server/graph/tenant/schema/__generated__/types";
|
||||
import { Tenant } from "coral-server/models/tenant";
|
||||
|
||||
export const Settings: GQLSettingsTypeResolver<Tenant> = {
|
||||
staticURI: (tenant, args, ctx) => ctx.config.get("static_uri") || null,
|
||||
};
|
||||
@@ -1076,6 +1076,11 @@ type Settings {
|
||||
"""
|
||||
domain: String! @auth(roles: [ADMIN])
|
||||
|
||||
"""
|
||||
staticURI if configured, is the static URI used to serve static files from.
|
||||
"""
|
||||
staticURI: String @auth(roles: [ADMIN])
|
||||
|
||||
"""
|
||||
allowedDomains is the list of domains that stories can come from.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user