Prepare folders and files needed for running a Laravel project.
Written in Ansible 1.9.*
Available variables are listed below, along with default values (see defaults/main.yml
):
User owning application code files.
Default is the value of ansible_ssh_user
.
Group owning application code files.
Default is the value of ansible_ssh_user
.
Application name used for folders.
Stage name used for folders.
Array of key value pairs for application config.
Nginx server_name.
Nginx port.
Use logrotage for the nginx log files.
Default is true.
Retention of the logrotate.
Default is 30.
Whether or not to allow credentials for CORS, Access-Control-Allow-Credentials.
Enable CORS, and specify allowed origin, Access-Control-Allow-Origin.
Methods allowed by CORS, Access-Control-Allow-Methods.
Custom headers allowed by CORS, Access-Control-Allow-Headers.
Valid time for pre-flight, Access-Control-Max-Age.
juwai.common juwai.nginx retr0h.logrotate
- hosts: servers
roles:
- juwai.laravel
MIT
This role was created in 2016 by Juwai Limited.