Skip to content

🏝 Wildcard SSL Nginx configuration for Laravel.

Notifications You must be signed in to change notification settings

devemio/nginx-configs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

39 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”’ 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