Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Yanuar Waskito waskito

🏠
Working from home
  • Indonesia
View GitHub Profile
@waskito
waskito / pagespeed.conf
Created May 24, 2017 — forked from smj10j/pagespeed.conf
Nginx conf for mod pagespeed
View pagespeed.conf
# Google Pagespeed
# https://developers.google.com/speed/pagespeed/module/configuration
pagespeed on;
pagespeed FileCachePath /var/cache/ngx_pagespeed/;
# let's speed up PageSpeed by storing it in the super duper fast memcached
pagespeed MemcachedThreads 1;
pagespeed MemcachedServers "127.0.0.1:11211";
# show half the users an optimized site, half the regular site
View centos-compile-nginx.sh
#!/usr/bin/env bash
# User must be root
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
return
fi
# Check if www-data do exist
q=$(id -u www-data)