Last active
February 5, 2017 18:52
-
-
Save ricardofontanelli/fcfb521b248c00a96606b49b438b3f98 to your computer and use it in GitHub Desktop.
Puphpet (https://puphpet.com/) is a great tool to build a virtual machine on your development environment, but if you need to tuning your nginx (or another service), you need to work diurect on config.yml (or config-custom.yml), file. Here we've a little example that shows us how to enable gzip on a nginx webserver. If you want to change another…
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- more lines | |
nginx: | |
install: '1' | |
settings: | |
version: present | |
default_vhost: 1 | |
proxy_buffers: '4 256k' | |
proxy_buffer_size: 128k | |
proxy_connect_timeout: 600s | |
proxy_send_timeout: 600s | |
proxy_read_timeout: 600s | |
names_hash_bucket_size: 128 | |
worker_processes: 1 | |
worker_connections: 1024 | |
http_access_log: 'off' | |
gzip: 'on' | |
http_cfg_append: | |
gzip_vary: 'on' | |
gzip_proxied: 'any' | |
gzip_comp_level: '6' | |
gzip_min_length: '256' | |
gzip_buffers: '16 8k' | |
gzip_http_version: '1.1' | |
gzip_types: 'text/plain text/html text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript' | |
upstreams: { } | |
vhosts: | |
--- more lines |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment