This role installs and configures a single nginx site.
Nothing, it runs out of the box.
In the current version, you can specify the following variables:
Name | Default | |
---|---|---|
web_root | --- | Main root for prestashop install. |
site_public_url | --- | Site URL. The primary site URL. |
cdn_endpoint | --- | Primary CDN end-point. |
rewrite_rules | --- | List containing custom nginx rewrite rules. (see below) |
nginx_whitelist_path | --- | Optionally enable a whitelist (/allow.conf) to be included in the site config |
# This list contains custom rewrite rules
# Single quote any rule that contains double quotes
rewrite_rules:
- '"^/c/([0-9]+)(\-[_a-zA-Z0-9-]*)/(.*)\.jpg$" {{ cdn_endpoint }}/img/c/$1$2.jpg last;'
- '"^/c/([_a-zA-Z-]+)/(.*)\.jpg$" {{ cdn_endpoint }}/img/c/$1.jpg last;'
- ^/page-not-found$ /index.php?controller=404 last;
- ^/address$ /index.php?controller=address last;
This package has no dependencies.
GPLv2
Created by Sam Morrison https://www.twitter.com/samcns
---
- name: common role test
hosts: all
roles:
- cns.nginx