hedgedoc/public/api/v2/config
Erik Michelson 9c19bb1d9d
Add support for image-proxies by (optional) piping of image urls through the backend (#315)
* Added config property for image proxies

* Added API call and image url replacing

* Added comment explaining why a local function is needed inside the useEffect

* Added CHANGELOG entry

* Changed wording of the CHANGELOG sentence

* Changed CHANGELOG entry

Co-Authored-By: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>

* Removed fallback to original src

* Removed unnecessary API call for empty src URLs

* Simplify image url fetching

* Refactored imageframe to avoid rerendering of images

Co-Authored-By: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>

* Renamed config property to useImageProxy

Co-authored-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-07-29 22:28:32 +02:00

40 lines
948 B
Text

{
"allowAnonymous": true,
"authProviders": {
"facebook": true,
"github": true,
"twitter": true,
"gitlab": true,
"dropbox": true,
"ldap": true,
"google": true,
"saml": true,
"oauth2": true,
"email": true,
"openid": true
},
"branding": {
"name": "ACME Corp",
"logo": "http://localhost:3000/acme.png"
},
"banner": {
"text": "This is the test banner text",
"timestamp": "2020-05-22T20:46:08.962Z"
},
"customAuthNames": {
"ldap": "FooBar",
"oauth2": "Olaf2",
"saml": "aufSAMLn.de"
},
"useImageProxy": false,
"specialLinks": {
"privacy": "https://example.com/privacy",
"termsOfUse": "https://example.com/termsOfUse",
"imprint": "https://example.com/imprint"
},
"version": {
"version": "mock",
"sourceCodeUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"issueTrackerUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
}
}