Skip to content

Instantly share code, notes, and snippets.

@slav123
Created March 3, 2018 07:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slav123/e9ee2397384f3c38427363419d87cd92 to your computer and use it in GitHub Desktop.
Save slav123/e9ee2397384f3c38427363419d87cd92 to your computer and use it in GitHub Desktop.
Caddy with features
pricewatch.io www.pricewatch.io 104.198.194.205 {
#startup service php70-php-fpm start
#shutdown service php70-php-fpm stop
expires {
match .css$ 1m # expires
match .js$ 1m # expires
match .png$ 1m # expires
match .jpg$ 1m #expires # expires
match .webp$ 1m
}
root /var/www/html/pricewatch.io/website/public
gzip
fastcgi / /var/run/php-sock php {
env CI_ENV production
}
index index.php index.html
errors /var/log/errors.log
rewrite {
to {path} {path}/ /index.php?/{uri}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment