wordpress-vhost-nginx

Example:

# Nginx wordpress vhost config.
- wordpress-vhost-nginx:
    vhost_name: my_wordpress_site
    wp_title: My wordpress site
    use_https: true
    host: dev.frkl.io
    base_path: /var/www/wordpress

Description

n/a

Variables

Name Type Default Description

wp_title

string --

The name of the wordpress instance. Required

base_path

string /var/www

The wordpress project folders parent directory.

host

string localhost

The hostname of the server.

server_admin

string --

The email address to use in the vhost file and with letsencrypt, falls back to 'wp_admin_email.

use_https

boolean --

Request a lets-encrypt certificate and serve devpi via https (needs 'server_admin' or 'wp_admin_email' set).

Examples

Example 1

Nginx wordpress vhost config.

Code
- wordpress-vhost-nginx:
    vhost_name: my_wordpress_site
    wp_title: My wordpress site
    use_https: true
    host: dev.frkl.io
    base_path: /var/www/wordpress

Command-line

frecklecute wordpress-vhost-nginx --help

Usage: frecklecute wordpress-vhost-nginx [OPTIONS]

  Create Nginx wordpress virtual host config.

Options:
  --wp-title TITLE              The name of the wordpress instance.
                                [required]
  --base-path BASE_PATH         The wordpress project folders parent
                                directory.  [default: /var/www]
  --host HOST                   The hostname of the server.  [default:
                                localhost]
  --server-admin SERVER_ADMIN   The email address to use in the vhost file and
                                with letsencrypt, falls back to
                                'wp_admin_email.
  --use-https / --no-use-https  Request a lets-encrypt certificate and serve
                                devpi via https (needs 'server_admin' or
                                'wp_admin_email' set).
  --help                        Show this message and exit.