Sign inSign up

lewg/hhvm-pagespeed

By lewg

•Updated over 6 years ago

HHVM + Nginx w/ Pagespeed

Image
0

10K+

lewg/hhvm-pagespeed repository overview

⁠HHVM + Nginx/Pagespeed

Runs HHVM⁠ behind Nginx⁠ built with the Pagespeed module⁠ with supervisor⁠.

⁠Info

To do something useful you'll want to use this as a base and copy files into/srv/www or mount a volume there!

⁠Notes

I've added some logic to the default.conf to use thengx_http_realip_module⁠ module and to relay the proxied HTTPS status to HHVM. If you want to make this more restrictive, you can adjust the set_real_ip_from lines or remove thefastcgi_param HTTPS line as needed. By default, nginx is setup to use the X-Forwarded-For header if the request comes from any of the standard private ip ranges (10.x.x.x, 192.168.x.x, 172.16.0.0 - 172.31.255.255). Additionally the HHVM admin server is passed through on port 8080, but not exposed outside of the container (if you do, do so carefully!)

⁠Key Software Versions

  • Nginx: 1.15.8
  • NPS: 1.13.35.2
  • HHVM: 3.30.2

Tag summary

Content type

Image

Digest

sha256:ac17e62a8…

Size

181 MB

Last updated

over 6 years ago

docker pull lewg/hhvm-pagespeed