Download the PHP package sitepilot/stack-nginx without Composer
On this page you can find all versions of the php package sitepilot/stack-nginx. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sitepilot/stack-nginx
More information about sitepilot/stack-nginx
Files in sitepilot/stack-nginx
Package stack-nginx
Short Description Ansible playbooks for provisioning web servers optimized for WordPress and Laravel.
License MIT
Informations about the package stack-nginx
Ansible Playbooks
Ansible playbooks for provisioning optimized web servers for WordPress and Laravel. These playbooks are used by Autopilot (our cloud server control panel) and are perfect for:
- Local development environments.
- High-performance production servers (with caching).
Requirements
- Ansible
- Ubuntu 20.04 LTS (Desktop/Server)
Inventory
Before you can provision a hosts folder and provision a server or group using the following command:
Example:
Resources
Resource playbooks use variables defined in a resource file, add your resources to the tests folder.
Available resource variables are defined in the defaults folder of a resource role and validated in the first assert task of each tasks file.
- Site variables: ./roles/site/defaults/main.yml
- User variables: ./roles/user/defaults/main.yml
- Database variables: ./roles/database/defaults/main.yml
Site
Database
User
Web Apps
- Health check:
https://{{ site_domain }}/-/ping/ - phpMyAdmin:
https://{{ site_domain }}/-/phpmyadmin/ - Mailhog:
https://{{ site_domain }}/-/mailhog/ - Node Exporter:
https://{{ site_domain }}/-/monitor/
Filesystem
- Vhosts:
/usr/local/openresty/nginx/conf/sites-enabled - PHP-FPM pools:
/etc/php/{{ php_version }}/fpm/pool.d - MariaDB data:
/opt/sitepilot/stack/mariadb/data
Site Files
- Public path:
/opt/sitepilot/sites/{{ site_name }}/files - Logs path:
/opt/sitepilot/sites/{{ site_name }}/logs - Cache path:
/opt/sitepilot/sites/{{ site_name }}/.cache - Config path:
/opt/sitepilot/sites/{{ site_name }}/.config - User home path:
/opt/sitepilot/sites/{{ site_name }}/home
Cache Purge
Send a PURGE request to the URL you would like to purge:
Author
These playbooks are developed and maintained by Nick Jansen.