Skip to content

Latest commit

 

History

History
52 lines (37 loc) · 1.11 KB

README.md

File metadata and controls

52 lines (37 loc) · 1.11 KB

🔒 Wildcard SSL Nginx configuration for Laravel

This script allows you to quickly install the latest version of Nginx web server, configure wildcard domain routing, install a secure ssl wildcard certificate through Let's Encrypt. This installation has been tested on Ubuntu 16.04 and Nginx 1.15.11.

Based on Nginx Server Configs.

Installation

Install Nginx (optional)

./bin/install-nginx.sh

Install Docker (optional)

./bin/install-docker.sh

1. Install nginx configurations

./bin/install-configurations.sh <base_domain_name>

The following files will be created:

/etc/nginx
  |- server-configs-nginx // base configurations from h5bp
  |- base                 // bash nginx configurations
  |- conf.d
  |  |- default.conf
  |  |- wildcard.conf
  |- nginx.conf

2. Install wildcard ssl certificates with Let's Encrypt

./bin/install-ssl.sh <base_domain_name>

The following files will be created:

/etc/letsencrypt
  |- live
  |- options-ssl-nginx.conf
  |- ssl-dhparams.pem