Changeset View
Changeset View
Standalone View
Standalone View
site-modules/profile/templates/hedgedoc/config.json.erb
- This file was added.
{ | |||||
"<%= @runtime_environment %>": { | |||||
"sessionSecret": "change-this-secret", | |||||
"allowAnonymous": <%= @allow_anonymous %>, | |||||
"allowAnonymousEdit": <%= @allow_anonymous_edits %>, | |||||
"allowFreeURL": true, | |||||
"domain": "<%= @base_url %>", | |||||
"loglevel": "<%= @log_level %>", | |||||
"allowOrigin": [ "localhost", "<%= @base_url %>"], | |||||
"hsts": { | |||||
"enable": true, | |||||
"maxAgeSeconds": 31536000, | |||||
"includeSubdomains": true, | |||||
"preload": true | |||||
}, | |||||
"csp": { | |||||
"enable": true, | |||||
"directives": { | |||||
}, | |||||
"upgradeInsecureRequests": "auto", | |||||
"addDefaults": true, | |||||
"addDisqus": true, | |||||
"addGoogleAnalytics": true | |||||
}, | |||||
"cookiePolicy": "lax", | |||||
"db": { | |||||
"username": "<%= @db_user %>", | |||||
"password": "<%= @db_password %>", | |||||
"database": "<%= @db_name %>", | |||||
"host": "<%= @host %>", | |||||
"port": "<%= @db_port %>", | |||||
"dialect": "postgres" | |||||
}, | |||||
"facebook": { | |||||
"clientID": "change this", | |||||
"clientSecret": "change this" | |||||
}, | |||||
"twitter": { | |||||
"consumerKey": "change this", | |||||
"consumerSecret": "change this" | |||||
}, | |||||
"github": { | |||||
"clientID": "change this", | |||||
"clientSecret": "change this" | |||||
}, | |||||
"gitlab": { | |||||
"baseURL": "change this", | |||||
"clientID": "change this", | |||||
"clientSecret": "change this", | |||||
"scope": "use 'read_user' scope for auth user only or remove this property if you need gitlab snippet import/export support (will result to be default scope 'api')", | |||||
"version": "v4" | |||||
}, | |||||
"mattermost": { | |||||
"baseURL": "change this", | |||||
"clientID": "change this", | |||||
"clientSecret": "change this" | |||||
}, | |||||
"dropbox": { | |||||
"clientID": "change this", | |||||
"clientSecret": "change this", | |||||
"appKey": "change this" | |||||
}, | |||||
"google": { | |||||
"clientID": "change this", | |||||
"clientSecret": "change this", | |||||
"apiKey": "change this" | |||||
}, | |||||
"ldap": { | |||||
"url": "ldap://change_this", | |||||
"bindDn": null, | |||||
"bindCredentials": null, | |||||
"searchBase": "change this", | |||||
"searchFilter": "change this", | |||||
"searchAttributes": ["change this"], | |||||
"usernameField": "change this e.g. cn", | |||||
"useridField": "change this e.g. uid", | |||||
"tlsOptions": { | |||||
"changeme": "See https://nodejs.org/api/tls.html#tls_tls_connect_options_callback" | |||||
} | |||||
}, | |||||
"imgur": { | |||||
"clientID": "change this" | |||||
}, | |||||
"minio": { | |||||
"accessKey": "change this", | |||||
"secretKey": "change this", | |||||
"endPoint": "change this", | |||||
"secure": true, | |||||
"port": 9000 | |||||
}, | |||||
"s3": { | |||||
"accessKeyId": "change this", | |||||
"secretAccessKey": "change this", | |||||
"region": "change this" | |||||
}, | |||||
"s3bucket": "change this", | |||||
"azure": | |||||
{ | |||||
"connectionString": "change this", | |||||
"container": "change this" | |||||
}, | |||||
"linkifyHeaderStyle": "gfm" | |||||
} | |||||
} |