Created
March 3, 2018 07:24
-
-
Save slav123/e9ee2397384f3c38427363419d87cd92 to your computer and use it in GitHub Desktop.
Caddy with features
This file contains 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
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