Skip to content

Configuration File

CloudPress provides a configuration file for each site that allows you to make customizations to how our service works.

Currently, this configuration file allows you to change:

  • The public path of your website
  • Where the CloudPress MU Plugins are installed
  • Where the CloudPress WordPress configuration is installed
  • Whether or not you're using bedrock.

You will find the configuration file in the root of your container's volume: /home/sftpuser/apps/{{ container name }}/wordpress/cloudpress.yml

##
# CloudPress Configuration File
##
version: 1.0
site:
  # Define the public path of your webiste. This will be used to configure nginx.
  webroot: html/wordpress
  wordpress:

    # Template: none, roots-bedrock
    # - `roots-bedrock` will ignore `wp_config_path`
    #   and `cloudpress_plugin_path` and instead
    #   infer the correct path following the bedrock standard.
    template: none

    # Path to the WordPress installation.
    # This is used to set the `--path` with wp-cli.
    #
    # When template is `roots-bedrock`, set to parent `bedrock` path
    path: html/wordpress

    # Path to the WordPress configuration file.
    # This is used to set the `--config-file` parameter with wp-cli
    #
    # Only used when `template` is none.
    wp_conf_path: html/wordpress/wp-config.php

    # Where we will install our plugins to enable the CloudPress
    # integrations to function correctly.
    #
    # Only used when `template` is none.
    cloudpress_plugin_path: html/wordpress/wp-content/mu-plugins
  nginx:
    cache:
      enabled: true

After you make a change, please restart your website using the 'Restart' action under Settings, in the CloudPress user interface.