diff --git a/roles/custom/matrix-static-files/defaults/main.yml b/roles/custom/matrix-static-files/defaults/main.yml index f33b07c92..37c42a315 100644 --- a/roles/custom/matrix-static-files/defaults/main.yml +++ b/roles/custom/matrix-static-files/defaults/main.yml @@ -121,6 +121,10 @@ matrix_static_files_environment_variable_server_log_remote_address: false # See: https://static-web-server.net/configuration/environment-variables/ matrix_static_files_environment_variable_server_config_file: /config/config.toml +# Controls the SERVER_IGNORE_HIDDEN_FILES environment variable. +# See: https://static-web-server.net/configuration/environment-variables/ +matrix_static_files_environment_variable_server_ignore_hidden_files: false + # Additional environment variables. matrix_static_files_environment_variables_additional_variables: '' diff --git a/roles/custom/matrix-static-files/templates/env.j2 b/roles/custom/matrix-static-files/templates/env.j2 index 0dd9b6f10..b095e0deb 100644 --- a/roles/custom/matrix-static-files/templates/env.j2 +++ b/roles/custom/matrix-static-files/templates/env.j2 @@ -10,5 +10,6 @@ SERVER_LOG_LEVEL={{ matrix_static_files_environment_variable_server_log_level }} SERVER_LOG_REMOTE_ADDRESS={{ 'true' if matrix_static_files_environment_variable_server_log_remote_address else 'false' }} SERVER_CONFIG_FILE={{ matrix_static_files_environment_variable_server_config_file }} +SERVER_IGNORE_HIDDEN_FILES={{ matrix_static_files_environment_variable_server_ignore_hidden_files | to_json }} {{ matrix_static_files_environment_variables_additional_variables }}