承接 mahdiaslami/laravel-nginx 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mahdiaslami/laravel-nginx

最新稳定版本:v1.0.1

Composer 安装命令:

composer require mahdiaslami/laravel-nginx

包简介

Save nginx config to your repository and dynamically generate it.

README 文档

README

Latest Version on Packagist Total Downloads GitHub Actions

This package prepares the commands for creating Nginx config from the Blade format.

Installation

You can install the package via composer:

composer require mahdiaslami/laravel-nginx

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:

// .nginx/config.stub
server {
    root {{ $variable }};
}
// .env
NGINX_VARIABLE=/path/

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

$ php artisan nginx:publish

To create a symbolic link in the /etc/nginx/sites-enabled directory use the following command.

$ php artisan nginx:link

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 mahdyaslami@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 3
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-09-13