2020-06-01 20:20:11 +00:00
|
|
|
[![GitHub stars](https://img.shields.io/github/stars/digitalocean/nginxconfig.io.svg)](https://github.com/digitalocean/nginxconfig.io/stargazers)
|
|
|
|
[![GitHub contributors](https://img.shields.io/github/contributors/digitalocean/nginxconfig.io.svg?color=blue)](https://github.com/digitalocean/nginxconfig.io/graphs/contributors)
|
2020-06-04 14:31:06 +00:00
|
|
|
[![MIT License](https://img.shields.io/github/license/digitalocean/nginxconfig.io.svg?color=blue)](https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE)
|
2020-06-01 20:20:11 +00:00
|
|
|
<br />
|
|
|
|
[![Closed issues](https://img.shields.io/github/issues-closed-raw/digitalocean/nginxconfig.io.svg?color=brightgreen)](https://github.com/digitalocean/nginxconfig.io/issues?q=is%3Aissue+is%3Aclosed)
|
|
|
|
[![Closed PR](https://img.shields.io/github/issues-pr-closed-raw/digitalocean/nginxconfig.io.svg?color=brightgreen)](https://github.com/digitalocean/nginxconfig.io/pulls?q=is%3Apr+is%3Aclosed)
|
|
|
|
[![Open issues](https://img.shields.io/github/issues-raw/digitalocean/nginxconfig.io.svg)](https://github.com/digitalocean/nginxconfig.io/issues)
|
|
|
|
[![Open PR](https://img.shields.io/github/issues-pr-raw/digitalocean/nginxconfig.io.svg)](https://github.com/digitalocean/nginxconfig.io/pulls)
|
|
|
|
|
2020-07-28 09:00:25 +00:00
|
|
|
[![nginxconfig](src/static/banner.png)](https://do.co/nginxconfig)
|
2020-06-01 20:20:11 +00:00
|
|
|
|
|
|
|
<h3 align="center">⚙️ NGINX configuration generator on steroids 💉</h3>
|
|
|
|
<p align="center">
|
|
|
|
The only tool you'll ever need to configure your NGINX server.
|
|
|
|
<br />
|
2020-07-28 09:00:25 +00:00
|
|
|
<a href="https://do.co/nginxconfig"><strong>do.co/nginxconfig »</strong></a>
|
2020-06-01 20:20:11 +00:00
|
|
|
<br />
|
|
|
|
<br />
|
2020-06-04 14:31:06 +00:00
|
|
|
<a href="https://github.com/digitalocean/nginxconfig.io/issues/new?template=report-a-bug.md">Report a bug</a>
|
2020-06-01 20:20:11 +00:00
|
|
|
·
|
2020-06-04 14:31:06 +00:00
|
|
|
<a href="https://github.com/digitalocean/nginxconfig.io/issues/new?template=request-a-feature.md">Request a feature</a>
|
2020-06-01 20:20:11 +00:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2021-03-16 14:58:29 +00:00
|
|
|
# ✨ [NGINX Config](https://do.co/nginxconfig)
|
2020-06-01 20:20:11 +00:00
|
|
|
|
|
|
|
NGINX is so much more than just a webserver. You already knew that, probably.
|
|
|
|
|
|
|
|
We love NGINX, because:
|
2021-10-08 16:34:03 +00:00
|
|
|
* Low memory usage
|
|
|
|
* High concurrency
|
|
|
|
* Asynchronous event-driven architecture
|
|
|
|
* Load balancing
|
|
|
|
* Reverse proxying
|
2020-06-01 20:20:11 +00:00
|
|
|
* FastCGI support with caching (PHP)
|
2021-10-08 16:34:03 +00:00
|
|
|
* Amazing fast handling of static files
|
2020-06-01 20:20:11 +00:00
|
|
|
* TLS/SSL with SNI
|
|
|
|
|
|
|
|
A lot of features with corresponding configuration directives.
|
2021-10-08 16:34:03 +00:00
|
|
|
You can deep dive into the [NGINX documentation](http://nginx.org/en/docs/) right now OR you can [use this tool](https://do.co/nginxconfig) to check
|
|
|
|
how NGINX works, observe how your inputs are affecting the output, and **generate the best config for your specific
|
|
|
|
use-case** (in parallel you can also still use the docs).
|
2020-06-01 20:20:11 +00:00
|
|
|
|
|
|
|
## 🚀 Usage
|
|
|
|
|
2020-08-17 18:34:53 +00:00
|
|
|
`GOTO` **[`do.co/nginxconfig`](https://do.co/nginxconfig)**
|
2020-06-01 20:20:11 +00:00
|
|
|
|
|
|
|
**Features:**
|
|
|
|
HTTPS, HTTP/2, IPv6, certbot, HSTS, security headers, SSL profiles, OCSP resolvers, caching, gzip, brotli, fallback
|
2020-10-27 10:40:39 +00:00
|
|
|
routing, reverse proxy, www/non-www redirect, CDN, PHP (TCP/socket, WordPress, Drupal, Magento, Joomla), Node.js support, Python
|
2020-06-01 20:20:11 +00:00
|
|
|
(Django) server, etc.
|
|
|
|
|
|
|
|
## 👨💻 Author
|
|
|
|
|
2021-10-08 16:34:03 +00:00
|
|
|
### Rewrite & Maintenance
|
2020-06-01 20:20:11 +00:00
|
|
|
|
|
|
|
**Matt (IPv4) Cowley <me@mattcowley.co.uk> (https://mattcowley.co.uk)**
|
|
|
|
* GitHub: [@MattIPv4](https://github.com/MattIPv4)
|
|
|
|
|
|
|
|
### Original version
|
|
|
|
|
|
|
|
**Bálint Szekeres <balint@szekeres.me> (https://balint.szekeres.me)**
|
|
|
|
* GitHub: [@0xB4LINT](https://github.com/0xB4LINT)
|
|
|
|
* LinkedIn: [@0xB4LINT](https://www.linkedin.com/in/0xB4LINT/)
|
|
|
|
|
2020-06-04 14:34:32 +00:00
|
|
|
## ▶️ Development
|
2020-06-01 20:20:11 +00:00
|
|
|
|
|
|
|
1. Clone the repository
|
2020-06-04 14:34:32 +00:00
|
|
|
```sh
|
|
|
|
git clone https://github.com/digitalocean/nginxconfig.io.git
|
|
|
|
```
|
|
|
|
|
2020-06-01 20:20:11 +00:00
|
|
|
2. Install NPM packages
|
2020-06-04 14:34:32 +00:00
|
|
|
```sh
|
|
|
|
npm ci
|
|
|
|
```
|
|
|
|
|
2020-06-01 20:20:11 +00:00
|
|
|
3. Run the development server *(with file watchers)*
|
2020-06-04 14:34:32 +00:00
|
|
|
```sh
|
|
|
|
npm run dev
|
|
|
|
```
|
|
|
|
|
2020-06-01 20:20:11 +00:00
|
|
|
4. Open the development site **[localhost:8080](http://localhost:8080)**
|
|
|
|
|
2022-02-04 22:01:19 +00:00
|
|
|
5. Lint your code *(eslint & stylelint)*
|
2020-06-04 14:34:32 +00:00
|
|
|
```sh
|
|
|
|
npm test
|
|
|
|
```
|
|
|
|
|
2021-05-25 15:22:51 +00:00
|
|
|
6. Build for production *(to the `dist` directory)*
|
2020-06-04 14:34:32 +00:00
|
|
|
```sh
|
|
|
|
npm run build
|
|
|
|
```
|
|
|
|
|
2020-06-01 20:20:11 +00:00
|
|
|
## 🤝 Contributing
|
|
|
|
|
|
|
|
Contributions are what make the open source community such an amazing place to be learn, inspire, and create.
|
|
|
|
Any contributions you make are **greatly appreciated**.
|
|
|
|
|
|
|
|
1. Fork the Project
|
|
|
|
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
|
2020-06-04 14:31:06 +00:00
|
|
|
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
|
2020-06-01 20:20:11 +00:00
|
|
|
4. Push to the Branch (`git push origin feature/AmazingFeature`)
|
|
|
|
5. Open a Pull Request
|
|
|
|
|
|
|
|
## ⚒️ Built With
|
|
|
|
|
|
|
|
* [Vue.js](https://vuejs.org/) - Template handling & app generation
|
|
|
|
* [Bulma](https://bulma.io/) - Base styling, customised by [do-bulma](https://github.com/do-community/do-bulma)
|
|
|
|
* [Prism](https://prismjs.com/) - Bash & NGINX syntax highlighting
|
|
|
|
|
|
|
|
## 📚 Resources
|
|
|
|
|
|
|
|
* [Mozilla SSL Configuration Generator v5](https://ssl-config.mozilla.org)
|
|
|
|
* [Mozilla SSL Configuration Generator](https://mozilla.github.io/server-side-tls/ssl-config-generator/)
|
|
|
|
* [OWASP TLS Cipher String Cheat Sheet](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/TLS_Cipher_String_Cheat_Sheet.md)
|
|
|
|
* [Nginx Optimization: understanding sendfile, tcp_nodelay and tcp_nopush](https://thoughts.t37.net/nginx-optimization-understanding-sendfile-tcp-nodelay-and-tcp-nopush-c55cdd276765)
|
|
|
|
* [NGINX Tuning For Best Performance](https://gist.github.com/denji/8359866)
|
|
|
|
* [Hardening Your HTTP Security Headers](https://www.keycdn.com/blog/http-security-headers/)
|
|
|
|
* [h5bp/server-configs-nginx](https://github.com/h5bp/server-configs-nginx)
|
|
|
|
* [Diffie-Hellman DSA-like parameters](https://security.stackexchange.com/questions/95178/diffie-hellman-parameters-still-calculating-after-24-hours/95184#95184)
|
|
|
|
* [hstspreload.org](https://hstspreload.org)
|
|
|
|
* [Optimal value for nginx worker_connections](https://serverfault.com/questions/787919/optimal-value-for-nginx-worker-connections)
|
|
|
|
|
|
|
|
## ⭐️ Show your support
|
|
|
|
|
|
|
|
Give a ⭐️ if this project helped you!
|
|
|
|
|
|
|
|
## 📝 License
|
|
|
|
|
2023-10-16 17:55:17 +00:00
|
|
|
Copyright © 2020 [DigitalOcean, Inc](https://www.digitalocean.com) <contact@digitalocean.com> (https://www.digitalocean.com).
|
2020-06-01 20:20:11 +00:00
|
|
|
<br />
|
2020-06-04 14:31:06 +00:00
|
|
|
This project is licensed under the [MIT](https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE) license.
|