定制 yourivw/sailor-services 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

yourivw/sailor-services

Composer 安装命令:

composer require yourivw/sailor-services

包简介

Personal services for Sailor.

README 文档

README

This package contains my own services and settings for yourivw/sailor.

Installation

Install this package as a dev dependency using composer:

composer require yourivw/sailor-services:dev-main --dev

Usage

See the documentation of yourivw/sailor for information on usage.

Services

HTTPS

The HTTPS service is a proxy based on the Nginx docker image, forwarding HTTPS traffic to Laravel. A certificate and CA certificate are automatically generated using mkcert. The CA can be changed by (re)placing the required files in ./.docker/https/CA, or by specifying a different directory containing these files (./.docker/https/CA:/etc/nginx/CA in the docker-compose file). Two files are expected in this CA directory, rootCA.pem containing the CA certificate, and rootCA-key.pem containing the PKCS#8 private key.

Proxies

Extra proxies can be added by modifying the SSL_SERVICES environment variable. In the following example, port 443 will be forwarded to port 80 on the laravel.test service, and port 8443 will be forwarded to port 80 on the api service.

https:
    environment:
        SSL_SERVICES: 'laravel.test:80:443;api:80:8443'

Certificate domains

By default the following domains/IP's will be added to the certificate:

  • $APP_SERVICE (from .env, defaults to laravel.test)
  • *.$APP_SERVICE
  • localhost
  • 127.0.0.1

Additional domains/IP's can be added as a string through the CERT_DOMAINS environment variable:

https:
    environment:
        CERT_DOMAINS: 'laravel.local laravel.example 192.168.2.1

PHPMyAdmin

A service based on the PHPMyAdmin docker image with basic configuration. See related documentation for additional configuration.

Redis Commander

A service based on the redis-commander docker image with basic configuration. See related documentation for additional configuration.

RedisInsight

A service based on the RedisInsight docker image with basic configuration. See related documentation for additional configuration. An connection to redis:6379 is pre-added, named 'Local'.

Contributing

Since this package contains my personal services, I'm not accepting contributions to this package.

License

This package is open-sourced software licensed under the MIT license.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-04-01