⚙️ NGINX config generator on steroids 💉
 
 
 
Go to file
Atila Silva 1fb756ca77
Set the PHP server config per site (#232)
* Set up the php server per site.

* Backwards compatibility logic for old config URLs.

* Remove php global config tab.

* Fix util import in website.conf.js

* Fix eslint fails.

* Move global php i18n keys to domain

* Remove unnecessary domains verification and set fastcgi_pass in unified mode.

* Convert return statement to logic operator in php_ustream.js

* Move php upstream to outside the server blocks

* Remove unnecessary watcher from php domain section

* Fix upstream config context and conditional append

* Separate backwards compatibility logic.

* Remove unused i18n key from php domain and update copyright of these files

* Replace all dots for underscore in php_upstream helper

* Fix missing space and remove upstream comment from php config.

* Fix selects $refs and watch the enable status for phpServer and phpBackupServer.

* Change copyright year for all modified files.

* Backwards compatibility logic for old config URLs after angularBackwardsCompatibility

* Deep merge old php global config from data url, and add safe disable for phpConfigs

* Move deep merge function to new helper

* Fix missing disable wordpressRules  and convert function declaration to arrows in deep merge helper

* Fix missing css class in php domain-section
2021-02-24 16:20:10 +00:00
.github Add script to verify integrity of language packs (#203) 2020-12-21 15:22:07 +00:00
src Set the PHP server config per site (#232) 2021-02-24 16:20:10 +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.js Add unit testing for browser language (#197) 2020-12-22 17:06:52 +00:00
.gitignore Add build script for bundled DO Prism styles (#200) 2020-12-21 15:15:35 +00:00
.nvmrc Change tar implementation & reduce bundle (583.28kb > 471.58kb) 2020-06-04 21:26:37 +01:00
.sasslintrc Initial empty app 2020-04-27 20:20:51 +01:00
LICENSE MIT license 2020-06-04 14:44:30 +01:00
README.md Joomla! conf (#86) (#186) 2020-10-27 10:40:39 +00:00
package-lock.json Update template generation (#224) 2021-02-19 17:56:38 +00:00
package.json Set dynamic webpack import path (#208) 2021-01-05 15:29:13 +00:00
vue.config.js Disable index.html fallback in dev (#230) 2021-02-19 17:54:58 +00:00

README.md

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, generate the best config for your specific use-case (and in parallel you can 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 & sass-lint)

    npm test
    
  6. Analyze production bundle size & composition

    npm run analyze
    
  7. 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.