承接 josebailon/laravel-supervisord-control 相关项目开发

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

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

josebailon/laravel-supervisord-control

Composer 安装命令:

composer require josebailon/laravel-supervisord-control

包简介

Laravel package for controlling Supervisord processes.

README 文档

README

This Laravel package generates a panel where Supervisor can be controlled through HTTP/XML-RPC requests under the hood.

Instalation

composer require josebailon/laravel-supervisord-control

Route name

Route to control panel can be referenced with name lsc_index

<?php
route('lsc_index');

Configuration

Default configuration and view will be used if no configuration file or view are published.

To publish configuration file to /config/jbosupervisord.php you need to run:

php artisan vendor:publish --tag=lsc-config

To publish used view to /resources/views/vendor/lsc

php artisan vendor:publish --tag=lsc-views

Options in configuration file

Field Default Description
host 127.0.0.1 Host where Supervisor is running
port 9001 Port where Supervisor is listening
username user User name allowed to authenticate with Supervisor
password password Pasword for that user
route_prefix supervisord Prefix added to routes used by this package. Control pannel can be accessed in this prefix. for example https://domain/supervisord
midlewares null Middlewares applied to routes used by this package. It is usefull to add the auth middleware if needed. You can specify several middlewares in a comma separated string: 'auth,othermiddleware'
extend_view false You can specify a string with the Blade path of a view in order to be extended. For example if you want to extend a layout called 'layouts.path' you must specify that string in this field. In order for this to work, next field called section must be populated too
section false Must contain a string with the name of the @yield directive where the view will be shown. For example if the extended view have a Blade operator @yield('content') you should specify 'content' in this field

Supervisor configutarion

Supervisor must have configured inet_http_server. This server should never be exposed directly to public internet and should use username and password. Read the security advices in the link.

Customizing the view

The default view has Bootstrap css clases in its elements. If you want to behave like that simply add Bootstrap to the extended view used.

If you want to customize the view, publish the views to /resources/views/vendor/lsc using:

php artisan vendor:publish --tag=lsc-views

index.blade.php is the main view called by this package. You can override the extending view behaviour in that file.

content.blade.php is the view containing all tables and buttons. You can edit css classes in that file to suit your needs.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2020-09-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固