Nginx Openresty with PageSpeed and HTTP2.
1.2K
Optimised and secured OpenResty build. The configuration follows best practices in performance and security plus additional improvements.
Server header removed)X-Frame-Options, X-XSS-Protection, Strict-Transport-Security)default_server sends back HTTP 444 No ResponseThe following modules are enabled:
# /etc/nginx/sites-enabled/example
server {
listen [::]:443 ssl spdy;
listen 443 ssl spdy;
server_name example.com;
ssl on;
ssl_certificate /etc/nginx/certs/example.crt;
ssl_certificate_key /etc/nginx/certs/example.key;
# Include base configuration
include base;
# Path for static files
root /var/www/example.com/public;
}
:warning: There is no vhost configured by default, it won't work without the proper volumes mounted.
# run the container & mount the volumes
docker run -d -p 443:443 \
-v /etc/nginx/sites-enabled:/etc/nginx/sites-enabled \
-v /etc/nginx/certs:/etc/nginx/certs \
-v /etc/nginx/conf:/etc/nginx/conf \
-v /etc/nginx/logs:/var/log/nginx \
-v /var/www:/var/www \
--name openresty \
jgautheron/openresty:1.3.5
Content type
Image
Digest
sha256:56fa412d2…
Size
339.2 MB
Last updated
over 10 years ago
docker pull jgautheron/openresty