Skip to content

cssnr/docker-nginx-static

Repository files navigation

Image Size Image Latest GitHub Tag Major GitHub Tag Minor GitHub Tag Release GitHub Release Version Workflow Build Workflow Lint GitHub Last Commit GitHub Contributors GitHub Repo Size GitHub Top Language GitHub Discussions GitHub Forks GitHub Repo Stars GitHub Org Stars Discord Ko-fi

Docker Nginx Static

Docker Static Web Server

Coming Soon...

Options

Variable Default Description of Environment Variable
STATIC /static Nginx root directory
SUID 1000 Directory group/user ID
NGINX_INDEX index.html index.htm Nginx directory index files
ERROR_PAGE /404.html Nginx 404 page, set off to disable
GZIP_TYPES * Nginx gzip_types, set off to disable
GZIP_LENGTH 1000 Minimum content size to compress
BASIC_AUTH - Basic auth file contents
BASIC_REALM Unauthorized Minimum content size to compress

See the src/10-setup.sh file for more details.

Basic Auth

$ htpasswd -nb user pass
user:$apr1$XFVN0nJA$IgZxtMHVAeA.Pu7ufU7/I0

Replace all $ with $$ for docker-compose.yaml files.
Use \n for newlines to add multiple credentials.

environment:
  BASIC_AUTH: 'user:$$apr1$$XFVN0nJA$$IgZxtMHVAeA.Pu7ufU7/I0\nuser2:$$apr1$$vswJgdwo$$2XkDOrvJFQ2pKwrXqGeWM0'

For examples see:

Support

Please let us know if you run into any issues or want to see new features...

For general help or to request a feature:

If you are experiencing an issue/bug or getting unexpected results:

Contributing

Please consider making a donation to support the development of this project and additional open source projects.

Ko-fi

If you would like to submit a PR, please review the CONTRIBUTING.md.

For a full list of current projects visit: https://cssnr.github.io/

About

Docker Static Web Server

Resources

Contributing

Stars

Watchers

Forks

Packages