Sign inSign up

orleika/web-static

By orleika

Updated over 9 years ago

small-secure-fast and static web server

Image
0

1.0K

orleika/web-static repository overview

MIT License Build Status nginx LibreSSL

orleika/web-static

nginx logo

small-secure-fast and static web server.
kudos for Wonderfall/dockerfiles.

Get Started

$ docker pull orleika/web-static
$ docker run -d -p 80:80 orleika/web-static

Features

small
  • Based on Alpine Linux, which is known as lightweight Linux distribution.
  • nginx built without unnecessary modules for static contents server.

This docker image size is only about 21MB.

secure
  • LibreSSL, which is one of the most secure SSL library. nginx built against it.
  • nginx built using hardening gcc flags.
  • Hide server name using headers More module.
  • Adjusted configuration considering DDoS attacks.
fast
  • HTTP2 support.
  • AIO Threads support.
  • Brotli compression support.
  • pcre-jit enabled.
  • Optimized configuration.

configuration

/etc/nginx
├── conf.d
│   ├── block_bots
│   ├── block_hotlink
│   ├── block_spams
│   ├── headers_params
│   ├── ssl_params
│   ├── vhost_http.conf
│   └── vhost_https.conf
├── nginx.conf
└── sites-enabled
     └── default.conf
  • conf.d/headers_params: includes X-Frame-Options, X-XSS-Protection, X-Content-Type-Options, CSP.
  • conf.d/vhost_http.conf: secure HTTP configuration.
  • conf.d/vhost_https.conf: more secure HTTPS configuration.
  • sites-enabled/default.conf: default conf file. You should replace new configuration file referring conf.d/vhost_http?s.conf.

Tag summary

Content type

Image

Digest

Size

9.1 MB

Last updated

over 9 years ago

docker pull orleika/web-static