This commit is contained in:
cronekorkn 2024-02-08 16:22:56 +01:00
parent 6602f2569a
commit 883da9fe9a
Signed by: cronekorkn
SSH key fingerprint: SHA256:v0410ZKfuO1QHdgKBsdQNF64xmTxOF8osF1LIqwTcVw
3 changed files with 44 additions and 36 deletions

View file

@ -41,15 +41,15 @@ actions = {
},
}
files = {
'/opt/freescout/.env': {
'content': '\n'.join(
f'{k}={v}' for k, v in
sorted(node.metadata.get('freescout/env').items())
),
'needs': [
'directory:/opt/freescout',
'action:clone_freescout',
],
},
}
# files = {
# '/opt/freescout/.env': {
# 'content': '\n'.join(
# f'{k}={v}' for k, v in
# sorted(node.metadata.get('freescout/env').items())
# ),
# 'needs': [
# 'directory:/opt/freescout',
# 'action:clone_freescout',
# ],
# },
# }

View file

@ -16,18 +16,18 @@ defaults = {
'php-intl': {},
},
},
'freescout': {
'env': {
'APP_TIMEZONE': 'Europe/Berlin',
'DB_CONNECTION': 'pgsql',
'DB_HOST': '127.0.0.1',
'DB_PORT': '5432',
'DB_DATABASE': 'freescout',
'DB_USERNAME': 'freescout',
'DB_PASSWORD': database_password,
'APP_KEY': 'base64:' + repo.vault.random_bytes_as_base64_for(f'{node.name} freescout APP_KEY', length=32).value
},
},
# 'freescout': {
# 'env': {
# 'APP_TIMEZONE': 'Europe/Berlin',
# 'DB_CONNECTION': 'pgsql',
# 'DB_HOST': '127.0.0.1',
# 'DB_PORT': '5432',
# 'DB_DATABASE': 'freescout',
# 'DB_USERNAME': 'freescout',
# 'DB_PASSWORD': database_password,
# 'APP_KEY': 'base64:' + repo.vault.random_bytes_as_base64_for(f'{node.name} freescout APP_KEY', length=32).value
# },
# },
'php': {
'php.ini': {
'cgi': {
@ -57,17 +57,17 @@ defaults = {
}
@metadata_reactor.provides(
'freescout/env/APP_URL',
)
def freescout(metadata):
return {
'freescout': {
'env': {
'APP_URL': 'https://' + metadata.get('freescout/domain') + '/',
},
},
}
# @metadata_reactor.provides(
# 'freescout/env/APP_URL',
# )
# def freescout(metadata):
# return {
# 'freescout': {
# 'env': {
# 'APP_URL': 'https://' + metadata.get('freescout/domain') + '/',
# },
# },
# }
@metadata_reactor.provides(

View file

@ -1,4 +1,12 @@
defaults = {}
defaults = {
'php': {
'php.ini': {
'cgi': {
'fix_pathinfo': '0',
},
},
},
}
@metadata_reactor.provides(