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': { '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',
}, },
} }