Open svandragt opened 2 years ago
Currently I have to add this to my init script:
fin exec --in=web cp -f .docksal/etc/nginx/includes/preset.conf /etc/nginx/includes/preset.conf
fin exec --in=web gomplate --file /etc/nginx/includes/upstream.php-fpm.conf.tmpl --out /etc/nginx/includes/upstream.conf
fin exec --in=web nginx -s reload
So I'm hacking on a WordPress multisite application, for which none of the presets work properly. I'm using a vhost-override and encountering the following issue:
NGINX_VHOST_PRESET=""
as some other NGINX images encourage, the shell script still tries to include a present with no name. But, this doesn't really work for my scenario anyway, because the upstream is limited to drupal, php, or wordpress presets.I think the current workaround is to use a regular html preset, and then
fin exec --in=web
a script file to replace some of the provided configuration, then trick nginx to reloadSo, I would like to request a way to have a bare php application that only includes the upstream. Perhaps the user can provide a custom preset or the repo can provide
php-bare
that just setsindex
?Appreciate your thoughts, happy to contribute.