Skip to content

ajsalkeld/Nginx-Server-Block-Generator

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
css
 
 
js
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

About

A Javascript webpage to generate a server config for Nginx.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published