Docker Static Web Server
Coming Soon...
| 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.
$ htpasswd -nb user pass
user:$apr1$XFVN0nJA$IgZxtMHVAeA.Pu7ufU7/I0Replace 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:
Please let us know if you run into any issues or want to see new features...
For general help or to request a feature:
- Q&A Discussion: https://github.com/cssnr/docker-nginx-static/discussions/categories/q-a
- Request a Feature: https://github.com/cssnr/docker-nginx-static/discussions/categories/feature-requests
If you are experiencing an issue/bug or getting unexpected results:
- Report an Issue: https://github.com/cssnr/docker-nginx-static/issues
- Chat with us on Discord: https://discord.gg/wXy6m2X8wY
- Provide General Feedback: https://cssnr.github.io/feedback/
Please consider making a donation to support the development of this project and additional open source projects.
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/