No description
Find a file
Kobi Meirson e2a95a5ed4
Move logging configuration to be per-domain (#399)
* chore: per-domain logging

* fix: lint

* fix: revert cdn configuration disabling the access log

* feat: more granular controls for logging

* chore(cr): bump copyright year to 2022

* fix(cr): missing error_log level in the global config

* fix(cr): `is-changed` indicators

* chore(cr): newline at end of file + eslint enforcement

* fix(cr): rows alignment when checkbox applies

* fix(cr): don't use default computed values

* fix: lint

* chore: use new flag names to allow backward compatability

* chore: global `access_log` should always be `off`

* feat: migrate old logging to new

* feat: option to turn on access_log and error_log on redirects

* fix: update copyright year

* fix: missing translation

* fix(cr): migration from global `error_log` being empty

* fix(cr): missing `return`

* fix(cr): account for a `server` dictionary without `domain`

* fix(cr): migrate previous `access_log` and `error_log` paths using the previous behavior

* chore(cr): additional logging comment

* feat(cr): disable error_log per domain

* fix(logging): use default paths

* fix(logging): retain the user values for error_log when toggling the log on/off

* fix(bc): new params shouldn't be overridden
2022-11-14 15:37:44 +00:00
.github Update workflows with v3 actions + permissions (#404) 2022-11-11 01:28:02 +00:00
src Move logging configuration to be per-domain (#399) 2022-11-14 15:37:44 +00:00
test Make language packs load async (#204) 2020-12-29 16:46:58 +00:00
.babelrc Add unit testing for browser language (#197) 2020-12-22 17:06:52 +00:00
.editorconfig Dedicated test workflow to run on PRs (#172) 2020-09-26 11:10:44 +01:00
.eslintrc.cjs Move logging configuration to be per-domain (#399) 2022-11-14 15:37:44 +00:00
.gitignore Add build script for bundled DO Prism styles (#200) 2020-12-21 15:15:35 +00:00
.nvmrc Dependency updates (#389) 2022-10-04 19:30:03 +01:00
LICENSE MIT license 2020-06-04 14:44:30 +01:00
package-lock.json Dependency updates (#389) 2022-10-04 19:30:03 +01:00
package.json Dependency updates (#389) 2022-10-04 19:30:03 +01:00
README.md Swap out sass-lint with stylelint (#328) 2022-02-04 22:01:19 +00:00
vue.config.js Suppress logging with NODE_ENV (#332) 2022-02-25 20:00:45 +00:00

GitHub stars GitHub contributors MIT License
Closed issues Closed PR Open issues Open PR

nginxconfig

⚙️ NGINX configuration generator on steroids 💉

The only tool you'll ever need to configure your NGINX server.
do.co/nginxconfig »

Report a bug · Request a feature


NGINX Config

NGINX is so much more than just a webserver. You already knew that, probably.

We love NGINX, because:

  • Low memory usage
  • High concurrency
  • Asynchronous event-driven architecture
  • Load balancing
  • Reverse proxying
  • FastCGI support with caching (PHP)
  • Amazing fast handling of static files
  • TLS/SSL with SNI

A lot of features with corresponding configuration directives. You can deep dive into the NGINX documentation right now OR you can use this tool 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).

🚀 Usage

GOTO do.co/nginxconfig

Features: HTTPS, HTTP/2, IPv6, certbot, HSTS, security headers, SSL profiles, OCSP resolvers, caching, gzip, brotli, fallback routing, reverse proxy, www/non-www redirect, CDN, PHP (TCP/socket, WordPress, Drupal, Magento, Joomla), Node.js support, Python (Django) server, etc.

👨‍💻 Author

Rewrite & Maintenance

Matt (IPv4) Cowley <me@mattcowley.co.uk> (https://mattcowley.co.uk)

Original version

Bálint Szekeres <balint@szekeres.me> (https://balint.szekeres.me)

▶️ Development

  1. Clone the repository

    git clone https://github.com/digitalocean/nginxconfig.io.git
    
  2. Install NPM packages

    npm ci
    
  3. Run the development server (with file watchers)

    npm run dev
    
  4. Open the development site localhost:8080

  5. Lint your code (eslint & stylelint)

    npm test
    
  6. Build for production (to the dist directory)

    npm run build
    

🤝 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)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

⚒️ Built With

  • Vue.js - Template handling & app generation
  • Bulma - Base styling, customised by do-bulma
  • Prism - Bash & NGINX syntax highlighting

📚 Resources

Show your support

Give a if this project helped you!

📝 License

Copyright © 2020 DigitalOcean, Inc <contact@digitalocean.com> (https://www.digitalocean.com).
This project is licensed under the MIT license.