bundle/hedgedoc update wbsite check
kunsi/bundlewrap/pipeline/head There was a failure building this commit Details

This commit is contained in:
Sophie Schiller 2021-09-11 19:56:49 +02:00
parent fcb39260c3
commit 3d3994789e
1 changed files with 27 additions and 28 deletions

View File

@ -6,29 +6,28 @@ defaults = {
},
'hedgedoc': {
'config': {
"production": {
"loglevel": "info",
"hsts": {
"enable": False,
},
"csp": {
"enable": True,
"directives": {
},
"upgradeInsecureRequests": "auto",
"addDefaults": True,
"addDisqus": False,
"addGoogleAnalytics": False
},
"cookiePolicy": "lax",
"db": {
"username": "hedgedoc",
"password": repo.vault.password_for('{} postgresql hedgedoc'.format(node.name)),
"database": "hedgedoc",
"host": "localhost",
"port": "5432",
"dialect": "postgres"
},
"production": {
"loglevel": "info",
"hsts": {
"enable": False,
},
"csp": {
"enable": True,
"directives": {},
"upgradeInsecureRequests": "auto",
"addDefaults": True,
"addDisqus": False,
"addGoogleAnalytics": False
},
"cookiePolicy": "lax",
"db": {
"username": "hedgedoc",
"password": repo.vault.password_for('{} postgresql hedgedoc'.format(node.name)),
"database": "hedgedoc",
"host": "localhost",
"port": "5432",
"dialect": "postgres"
},
'imageUploadType': 'filesystem',
'uploadsPath': '/var/opt/hedgedoc',
'allowAnonymous': False,
@ -37,8 +36,8 @@ defaults = {
'sessionSecret': repo.vault.password_for('{} hedgedoc sessionSecret'.format(node.name)),
'allowEmailRegister': False,
'protocolUseSSL': True,
},
},
},
},
},
'postgresql': {
'roles': {
@ -100,7 +99,7 @@ def nginx(metadata):
locations = {
'/': {
'target': 'http://127.0.0.1:3000',
'target': 'http://127.0.0.1:3000',
'proxy_set_header': {
'X-Real-IP': '$remote_addr',
},
@ -118,8 +117,8 @@ def nginx(metadata):
'hedgedoc': {
'domain': metadata.get('hedgedoc/config/production/domain'),
'locations': locations,
'website_check_path': '/_matrix/static/',
'website_check_string': 'Synapse is running',
'website_check_path': '/',
'website_check_string': 'HedgeDoc',
},
}