diff --git a/app.json b/app.json index 6c7b0b7533..aaf9e94864 100644 --- a/app.json +++ b/app.json @@ -42,6 +42,11 @@ "value": "true", "required": true }, + "ALLOW_FILE_PROTOCOL": { + "description": "Allow file:// links in documents. This is a security risk and should only be enabled in self-hosted environments.", + "value": "false", + "required": false + }, "URL": { "description": "https://{your app name}.herokuapp.com, or the domain you are binding to", "required": true diff --git a/app/scenes/Settings/Security.tsx b/app/scenes/Settings/Security.tsx index 41ec8a181b..70d10ed787 100644 --- a/app/scenes/Settings/Security.tsx +++ b/app/scenes/Settings/Security.tsx @@ -361,6 +361,21 @@ function Security() { onChange={handleDocumentEmbedsChange} /> + {!isCloudHosted && ( + + + + )}