A Javascript webpage to generate a server config for Nginx.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
css
js
LICENSE.md
README.md
android-chrome-192x192.png
android-chrome-512x512.png
apple-touch-icon.png
browserconfig.xml
favicon-16x16.png
favicon-32x32.png
favicon.ico
index.html
manifest.json
mstile-150x150.png
safari-pinned-tab.svg
script.js
style.css

README.md

Nginx Server Block Generator

Use on ajsalkeld.com, or read more about it.

A Javascript webpage to generate a server config for Nginx.

Fill out the form and click 'Just Do It!'. The script then generates a server config file for use in either nginx.conf (as server{}) or in a virtual host file.

Current options

  • Set port to listen on
  • Set server_name
  • Set root directory
  • Set index
  • Enable php-fpm and change socket
  • Enable SSL and set certificate and key locations
  • Block image leeching (or hotlinking)
  • Allow Wordpress pretty permalinks

TODO:

  • Add IPv6
  • Add more advanced SSL options
  • Anything else I think of/is suggested.

Known problems

Code is a wee bit messy, but hey-ho it works. Any problems you experience, please report the issue!

Contributing

Feel free to add code and fix my mess, and then make a pull request. Shoutout to jartaud for doing just so.