freescout #16

Open
cronekorkn wants to merge 6 commits from freescout into master
3 changed files with 44 additions and 36 deletions
Showing only changes of commit c63e56975c - Show all commits

View file

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

View file

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

View file

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