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_user
.
Group owning application code files.
Default is the value of ansible_user
.
Base directory for applications.
Default is /var/www
.
Application name used for folders.
Stage name used for folders.
Default is vagrant
.
Environment (vagrant
, staging
, or production
).
Array of key value pairs for application config.
Nginx server_name.
Default is localhost
.
Extra config block for nginx.
Default is ''
.
Nginx port.
Default is 80.
Use Nginx module: ngx_http_realip_module, and add HTTP_X_REAL_IP to fastcgi_param.
Default is false.
Whether generate nginx config file or not.
Default is true.
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.
Enable https
Default is false
SSL certificate path
SSL certificate private key path
SSL certificate
Intermediate level of certificate
SSL private key
Redirect site from http to https
Default is false
Redirect site from http to https if http_x_forwarded_proto is http
Default is false
juwai.common juwai.nginx retr0h.logrotate
- hosts: servers
roles:
- juwai.laravel
MIT
This role was created in 2016 by Juwai Limited.