mash-playbook/docs/services/wordpress.md

2.2 KiB

Wordpress

WordPress is a widley used open source web content management system that this playbook can install, powered by the mother-of-all-self-hosting/ansible-role-wordpress Ansible role.

Dependencies

This service requires the following other services:

Configuration

########################################################################
#                                                                      #
# wordpress                                                            #
#                                                                      #
########################################################################

wordpress_enabled: true

wordpress_hostname: example.org

########################################################################
#                                                                      #
# /wordpress                                                           #
#                                                                      #
########################################################################

Usage

Navigate to the domain you set as wordpress_hostname, select a language and create an admin user.

Make sure to create a user with a strong password

You can now log in and fill your website with content!

Advanced

Basic authentication

If you don't want to have your website accessible to everyone (e.g. you first want to present it to a client) you can use

wordpress_container_labels_middleware_basic_auth_enabled: true
# Use `htpasswd -nb USERNAME PASSSWORD` to generate the users below.
# See: https://doc.traefik.io/traefik/middlewares/http/basicauth/#users
wordpress_container_labels_middleware_basic_auth_users: ''

Increase upload limit

Increasing the upload limit can be done by manually editing the file /mash/wordpress/data/.htaccess and adding the following at the end of the file

php_value upload_max_filesize 256M
php_value post_max_size 256M
php_value max_execution_time 600
php_value max_input_time 600