leoloso/awseb-le-wp-install
Composer 安装命令:
composer create-project leoloso/awseb-le-wp-install
包简介
Quickly launch WordPress in a AWS Elastic Beanstalk single instance with Let's Encrypt
README 文档
README
Bootstrapper to launch WordPress in an AWS Elastic Beanstalk single instance with Let's Encrypt, configurable through environment variables
Description
This project is ready to be deployed to Elastic Beanstalk under a single instance, featuring:
- WordPress pre-installed, admin area accessible under
/wp/wp-admin/ - HTTPS through Let's Encrypt
- Cronjob to automatically renew the Let's Encrypt certificate
- All information is set through environment variables
Usage
Via Composer:
composer create-project leoloso/awseb-le-wp-install
After bootstrapping this project, add your own code, and deploy!
Environment variables
Define the following environment variables in the Elastic Beanstalk application's configuration (under entry "Software"), or using CLI command eb setenv:
- WordPress configuration (
wp-config.php):
DB_NAME={YOUR_SITE_DB_NAME} #eg: database
DB_USER={YOUR_SITE_DB_USER} #eg: admin
DB_PASSWORD={YOUR_SITE_DB_PASSWORD} #eg: sADF!kl9diq@#Sjfk
DB_HOST={YOUR_SITE_DB_HOST} #eg: 127.0.0.1
SITE_URL_WITHOUT_HTTP={YOUR_SITE_URL_WITHOUT_HTTP} #eg: yourdomain.com
SITE_URL_WITH_HTTP={YOUR_SITE_URL_WITH_HTTP} #eg: https://yourdomain.com
SITE_NAME="{YOUR_SITE_NAME}" #eg: "My awesome website"
ADMIN_USER={ADMIN_USER} #eg: admin
ADMIN_PASSWORD={ADMIN_PASSWORD} #eg: JKo$@sfjASD00w
ADMIN_EMAIL={ADMIN_EMAIL} #eg: pedro@example.com
To set the SALT keys there are two alternatives:
I. Set random values through environment variable SHUFFLE_SALT_KEYS:
SHUFFLE_SALT_KEYS=true
II. Set the corresponding values directly:
# Obtain random values from https://api.wordpress.org/secret-key/1.1/salt
AUTH_KEY={YOUR_AUTH_KEY}
SECURE_AUTH_KEY={YOUR_SECURE_AUTH_KEY}
LOGGED_IN_KEY={YOUR_LOGGED_IN_KEY}
NONCE_KEY={YOUR_NONCE_KEY}
AUTH_SALT={YOUR_AUTH_SALT}
SECURE_AUTH_SALT={YOUR_SECURE_AUTH_SALT}
LOGGED_IN_SALT={YOUR_LOGGED_IN_SALT}
NONCE_SALT={YOUR_NONCE_SALT}
- Let's Encrypt configuration:
LETSENCRYPT_DOMAIN={YOUR_LETSENCRYPT_DOMAIN} # Domain to register: yourdomain.com
LETSENCRYPT_EMAIL={YOUR_EMAIL} # eg: pedro@example.com
LETSENCRYPT_OPTIONS={YOUR_LETSENCRYPT_OPTIONS} # Can be used to pass "--dry-run" to avoid re-registering the certificate when launching a new server instance
Credits
The Let's Encrypt configuration was mostly taken from Radek Zajkowski's article Elastic Beanstalk and Let’s Encrypt.
Installing WordPress through Composer and WP-CLI is based another project of mine.
License
The MIT License (MIT). Please see License File for more information.
leoloso/awseb-le-wp-install 适用场景与选型建议
leoloso/awseb-le-wp-install 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 5 次下载、GitHub Stars 达 4, 最近一次更新时间为 2019 年 08 月 02 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「amazon」 「bootstrap」 「wordpress」 「aws」 「beanstalk」 「elastic」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 leoloso/awseb-le-wp-install 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 leoloso/awseb-le-wp-install 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 leoloso/awseb-le-wp-install 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
This package includes a script and fail2ban configuration that allows you to use fail2ban when utilizing AWS elastic load balancer (ELB) and an apache webserver.
Views for the package MedicOneSystems Livewire Datatables with Bootstrap 4
Magento 2 Social Login extension is designed for quick login to your Magento 2 store without procesing complex register steps
bootstrap select field module implementing http://silviomoreto.github.io/bootstrap-select/
A simple Laravel 5/6/7/8 service provider for including the AWS SDK for PHP.
Selectize Theme for Bootstrap 4
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-08-02