Skip to content

KubqoA/nginx-conf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nginx-conf

License: GPL v2 Posix compatible

Easy to use nginx configuration manager. It can:

  • Create new virtual hosts configuration
  • Use various pre-defined virtual hosts templates
  • Initialize new virtual hosts from git repositories

Requirements

Optional

  • git - For cloning git repositories for virtual hosts
  • composer - For creating bootstraps of various composer projects

Installation

  • Clone this repository git clone https://github.com/KubqoA/nginx-conf.git
  • Modify the predefined constants in the nginx-conf script
  • Modify any configuration such as the PHP FPM socket in conf.d directory
  • Copy conf.d directory into your nginx path (e.g. /etc/nginx)

Usage

This script must be run as root.

Usage: ./nginx-conf [OPTIONS] <domain>

Available options:

  • -h,--help Print this help information
  • -V,--version Print version info and exit
  • -v,--verbose Use verbose output
  • -c,--certdomain SSL certificate domain to be used (defaults to )
  • -d,--directory Directory for the virtual host (defaults to /srv/www/
  • --skip-directory-creation Skip directory creation
  • -g,--git Git repository to clone to the virtual host directory, ignored when -s is used
  • -o,--owner User and group owner of the virtual host directory (defaults to www-data:www-data)
  • -t,--type Type of the virtual host configuration to be used
  • -s,--create-sftp-user Create a new user for SFTP access for the virtual host

License

nginx-conf is released under GNU General Public License v2

Copyright (C) 1989, 1991 Free Software Foundation, Inc.

Releases

No releases published

Packages

No packages published

Languages