Skip to content

Instantly share code, notes, and snippets.

@htuscher
Created May 14, 2017 16:54
Show Gist options
  • Select an option

  • Save htuscher/78bce01aefc4a65c1ffd337872f3f01f to your computer and use it in GitHub Desktop.

Select an option

Save htuscher/78bce01aefc4a65c1ffd337872f3f01f to your computer and use it in GitHub Desktop.
Webdevops FastCGI params
# etc/nginx/vhost.common.d/10-php.conf
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_read_timeout 1000;
<FOO_BAR>
}
# provision-bin/service.d/nginx.d/12-foo-bar.sh
go-replace \
-s "<FOO_BAR>" \
-r "$FOO_BAR" \
--path=/opt/docker/etc/nginx/ \
--path-pattern='*.conf' \
--ignore-empty
FROM webdevops/php-nginx:ubuntu-16.04
ENV FOO_BAR ""
COPY provision-bin/ /opt/docker/bin/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment