Sign inSign up

octfx/nginx-static

By octfx

Updated almost 6 years ago

Image
0

120

octfx/nginx-static repository overview

Nginx Image with static file caching

Uses flashspys/nginx-static as the base.

Full nginx config:

server {
    listen       80;
    server_name  localhost;

    location / {
        root   /static;
        index  index.html index.htm;
    }

    location ~* \.(?:ico|css|js|gif|jpe?g|png)$ {
        expires 180d;
        add_header Pragma public;
        add_header Cache-Control "public";
    }
}

Tag summary

Content type

Image

Digest

Size

4.4 MB

Last updated

almost 6 years ago

docker pull octfx/nginx-static