Nginx Blueprint¶
Fabric environment:
blueprints:
- blues.nginx
settings:
nginx:
sites: # List of sites/templates in `sites-available` folder to enable (Optional)
- foo # Template name, with or without .conf extension
- bar
# auto_disable_sites: true # Auto disable sites not specified in `sites` setting (Default: true)
-
setup
¶ Install and configure nginx
-
configure
¶ Configure nginx and enable/disable sites
-
enable
¶ Enable site
Parameters: - site – Site to enable
- do_reload – Reload nginx service
Returns: Got enabled?
-
disable
¶ Disable site
Parameters: - site – Site to disable
- do_reload – Reload nginx service
Returns: Got disabled?
-
tail
¶