mirror of https://github.com/requarks/wiki
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
101 lines
2.4 KiB
101 lines
2.4 KiB
# ===============================================
|
|
# SITE
|
|
# ===============================================
|
|
|
|
extend type Query {
|
|
site: SiteQuery
|
|
}
|
|
|
|
extend type Mutation {
|
|
site: SiteMutation
|
|
}
|
|
|
|
# -----------------------------------------------
|
|
# QUERIES
|
|
# -----------------------------------------------
|
|
|
|
type SiteQuery {
|
|
config: SiteConfig @auth(requires: ["manage:system"])
|
|
}
|
|
|
|
# -----------------------------------------------
|
|
# MUTATIONS
|
|
# -----------------------------------------------
|
|
|
|
type SiteMutation {
|
|
updateConfig(
|
|
host: String
|
|
title: String
|
|
description: String
|
|
robots: [String]
|
|
analyticsService: String
|
|
analyticsId: String
|
|
company: String
|
|
contentLicense: String
|
|
logoUrl: String
|
|
authAutoLogin: Boolean
|
|
authEnforce2FA: Boolean
|
|
authHideLocal: Boolean
|
|
authLoginBgUrl: String
|
|
authJwtAudience: String
|
|
authJwtExpiration: String
|
|
authJwtRenewablePeriod: String
|
|
featurePageRatings: Boolean
|
|
featurePageComments: Boolean
|
|
featurePersonalWikis: Boolean
|
|
securityOpenRedirect: Boolean
|
|
securityIframe: Boolean
|
|
securityReferrerPolicy: Boolean
|
|
securityTrustProxy: Boolean
|
|
securitySRI: Boolean
|
|
securityHSTS: Boolean
|
|
securityHSTSDuration: Int
|
|
securityCSP: Boolean
|
|
securityCSPDirectives: String
|
|
uploadMaxFileSize: Int
|
|
uploadMaxFiles: Int
|
|
uploadScanSVG: Boolean
|
|
uploadForceDownload: Boolean
|
|
|
|
): DefaultResponse @auth(requires: ["manage:system"])
|
|
}
|
|
|
|
# -----------------------------------------------
|
|
# TYPES
|
|
# -----------------------------------------------
|
|
|
|
type SiteConfig {
|
|
host: String
|
|
title: String
|
|
description: String
|
|
robots: [String]
|
|
analyticsService: String
|
|
analyticsId: String
|
|
company: String
|
|
contentLicense: String
|
|
logoUrl: String
|
|
authAutoLogin: Boolean
|
|
authEnforce2FA: Boolean
|
|
authHideLocal: Boolean
|
|
authLoginBgUrl: String
|
|
authJwtAudience: String
|
|
authJwtExpiration: String
|
|
authJwtRenewablePeriod: String
|
|
featurePageRatings: Boolean
|
|
featurePageComments: Boolean
|
|
featurePersonalWikis: Boolean
|
|
securityOpenRedirect: Boolean
|
|
securityIframe: Boolean
|
|
securityReferrerPolicy: Boolean
|
|
securityTrustProxy: Boolean
|
|
securitySRI: Boolean
|
|
securityHSTS: Boolean
|
|
securityHSTSDuration: Int
|
|
securityCSP: Boolean
|
|
securityCSPDirectives: String
|
|
uploadMaxFileSize: Int
|
|
uploadMaxFiles: Int
|
|
uploadScanSVG: Boolean
|
|
uploadForceDownload: Boolean
|
|
}
|