bundle/hedgedoc update wbsite check
Some checks failed
kunsi/bundlewrap/pipeline/head There was a failure building this commit
Some checks failed
kunsi/bundlewrap/pipeline/head There was a failure building this commit
This commit is contained in:
parent
fcb39260c3
commit
3d3994789e
1 changed files with 27 additions and 28 deletions
|
@ -6,29 +6,28 @@ defaults = {
|
||||||
},
|
},
|
||||||
'hedgedoc': {
|
'hedgedoc': {
|
||||||
'config': {
|
'config': {
|
||||||
"production": {
|
"production": {
|
||||||
"loglevel": "info",
|
"loglevel": "info",
|
||||||
"hsts": {
|
"hsts": {
|
||||||
"enable": False,
|
"enable": False,
|
||||||
},
|
},
|
||||||
"csp": {
|
"csp": {
|
||||||
"enable": True,
|
"enable": True,
|
||||||
"directives": {
|
"directives": {},
|
||||||
},
|
"upgradeInsecureRequests": "auto",
|
||||||
"upgradeInsecureRequests": "auto",
|
"addDefaults": True,
|
||||||
"addDefaults": True,
|
"addDisqus": False,
|
||||||
"addDisqus": False,
|
"addGoogleAnalytics": False
|
||||||
"addGoogleAnalytics": False
|
},
|
||||||
},
|
"cookiePolicy": "lax",
|
||||||
"cookiePolicy": "lax",
|
"db": {
|
||||||
"db": {
|
"username": "hedgedoc",
|
||||||
"username": "hedgedoc",
|
"password": repo.vault.password_for('{} postgresql hedgedoc'.format(node.name)),
|
||||||
"password": repo.vault.password_for('{} postgresql hedgedoc'.format(node.name)),
|
"database": "hedgedoc",
|
||||||
"database": "hedgedoc",
|
"host": "localhost",
|
||||||
"host": "localhost",
|
"port": "5432",
|
||||||
"port": "5432",
|
"dialect": "postgres"
|
||||||
"dialect": "postgres"
|
},
|
||||||
},
|
|
||||||
'imageUploadType': 'filesystem',
|
'imageUploadType': 'filesystem',
|
||||||
'uploadsPath': '/var/opt/hedgedoc',
|
'uploadsPath': '/var/opt/hedgedoc',
|
||||||
'allowAnonymous': False,
|
'allowAnonymous': False,
|
||||||
|
@ -37,8 +36,8 @@ defaults = {
|
||||||
'sessionSecret': repo.vault.password_for('{} hedgedoc sessionSecret'.format(node.name)),
|
'sessionSecret': repo.vault.password_for('{} hedgedoc sessionSecret'.format(node.name)),
|
||||||
'allowEmailRegister': False,
|
'allowEmailRegister': False,
|
||||||
'protocolUseSSL': True,
|
'protocolUseSSL': True,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'postgresql': {
|
'postgresql': {
|
||||||
'roles': {
|
'roles': {
|
||||||
|
@ -100,7 +99,7 @@ def nginx(metadata):
|
||||||
|
|
||||||
locations = {
|
locations = {
|
||||||
'/': {
|
'/': {
|
||||||
'target': 'http://127.0.0.1:3000',
|
'target': 'http://127.0.0.1:3000',
|
||||||
'proxy_set_header': {
|
'proxy_set_header': {
|
||||||
'X-Real-IP': '$remote_addr',
|
'X-Real-IP': '$remote_addr',
|
||||||
},
|
},
|
||||||
|
@ -118,8 +117,8 @@ def nginx(metadata):
|
||||||
'hedgedoc': {
|
'hedgedoc': {
|
||||||
'domain': metadata.get('hedgedoc/config/production/domain'),
|
'domain': metadata.get('hedgedoc/config/production/domain'),
|
||||||
'locations': locations,
|
'locations': locations,
|
||||||
'website_check_path': '/_matrix/static/',
|
'website_check_path': '/',
|
||||||
'website_check_string': 'Synapse is running',
|
'website_check_string': 'HedgeDoc',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue