Define matrix_synapse_reverse_proxy_companion_access_log_syslog_integration_server_port in the role defaults and make the tag configurable
This commit is contained in:
		| @@ -131,6 +131,12 @@ matrix_synapse_reverse_proxy_companion_worker_connections: 1024 | |||||||
| # Option to disable the access log | # Option to disable the access log | ||||||
| matrix_synapse_reverse_proxy_companion_access_log_enabled: true | matrix_synapse_reverse_proxy_companion_access_log_enabled: true | ||||||
|  |  | ||||||
|  | # Controls whether to send access logs to a remote syslog-compatible server | ||||||
|  | matrix_synapse_reverse_proxy_companion_access_log_syslog_integration_enabled: false | ||||||
|  | matrix_synapse_reverse_proxy_companion_access_log_syslog_integration_server_port: '' | ||||||
|  | # This is intentionally different. The maximum allowed length is 32 characters and dashes are not allowed. | ||||||
|  | matrix_synapse_reverse_proxy_companion_access_log_syslog_integration_tag: matrix_synapse_rev_proxy_comp | ||||||
|  |  | ||||||
| # The tmpfs at /tmp needs to be large enough to handle multiple concurrent file uploads. | # The tmpfs at /tmp needs to be large enough to handle multiple concurrent file uploads. | ||||||
| matrix_synapse_reverse_proxy_companion_tmp_directory_size_mb: "{{ (matrix_synapse_reverse_proxy_companion_federation_api_client_max_body_size_mb | int) * 50 }}" | matrix_synapse_reverse_proxy_companion_tmp_directory_size_mb: "{{ (matrix_synapse_reverse_proxy_companion_federation_api_client_max_body_size_mb | int) * 50 }}" | ||||||
| matrix_synapse_reverse_proxy_companion_tmp_cache_directory_size_mb: "{{ (matrix_synapse_reverse_proxy_companion_synapse_cache_max_size_mb | int) * 2 }}" | matrix_synapse_reverse_proxy_companion_tmp_cache_directory_size_mb: "{{ (matrix_synapse_reverse_proxy_companion_synapse_cache_max_size_mb | int) * 2 }}" | ||||||
|   | |||||||
| @@ -47,7 +47,7 @@ http { | |||||||
| 								'$status "$http_referer" ' | 								'$status "$http_referer" ' | ||||||
| 								'"$http_user_agent" "$http_x_forwarded_for"'; | 								'"$http_user_agent" "$http_x_forwarded_for"'; | ||||||
|  |  | ||||||
| 	access_log syslog:server={{ matrix_synapse_reverse_proxy_companion_access_log_syslog_integration_server_port }},tag=matrix_nginx_proxy_companion prometheus_fmt; | 	access_log syslog:server={{ matrix_synapse_reverse_proxy_companion_access_log_syslog_integration_server_port }},tag={{ matrix_synapse_reverse_proxy_companion_access_log_syslog_integration_tag }} prometheus_fmt; | ||||||
| 	{% endif %} | 	{% endif %} | ||||||
|  |  | ||||||
| 	{% if not matrix_synapse_reverse_proxy_companion_access_log_enabled and not matrix_synapse_reverse_proxy_companion_access_log_syslog_integration_enabled %} | 	{% if not matrix_synapse_reverse_proxy_companion_access_log_enabled and not matrix_synapse_reverse_proxy_companion_access_log_syslog_integration_enabled %} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user