Download the PHP package mahdiaslami/laravel-nginx without Composer
On this page you can find all versions of the php package mahdiaslami/laravel-nginx. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mahdiaslami/laravel-nginx
More information about mahdiaslami/laravel-nginx
Files in mahdiaslami/laravel-nginx
Package laravel-nginx
Short Description Save nginx config to your repository and dynamically generate it.
License MIT
Homepage https://github.com/mahdyaslami/laravel-nginx
Informations about the package laravel-nginx
Laravel Nginx
This package prepares the commands for creating Nginx config from the Blade format.
Installation
You can install the package via composer:
Usage
Create .nginx
directory and add config.stub
file to it. this file contains
the Nginx configuration for your application. if you use a variable inside it
you should prepare it inside .env
file with NGINX_
prefix.
for example:
You can use as many variables as you need. and use all blade directives. it will be rendered by the blade.
For publish your config into /etc/nginx/sites-available/
directory use
following command. and if you only want to see configuration after render use
--show
option
To create a symbolic link in the /etc/nginx/sites-enabled
directory use the
following command.
Set the name of the file in the sites-available
directory by evaluating the
NGINX_FILENAME
variable in the .env
directory.
Changelog
Please see CHANGELOG for more information what has changed recently.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Mahdi Aslami Khavari
- All Contributors
License
The MIT License (MIT). Please see License File for more information.