mirror of
				https://github.com/spantaleev/matrix-docker-ansible-deploy.git
				synced 2025-10-30 23:07:57 +01:00 
			
		
		
		
	Merge pull request #153 from huguesdk/bugfix/whitespace_in_templates
Fix whitespace in templates
This commit is contained in:
		| @@ -1,3 +1,4 @@ | ||||
| #jinja2: lstrip_blocks: "True" | ||||
| { | ||||
| 	"m.homeserver": { | ||||
| 		"base_url": "{{ matrix_homeserver_url }}" | ||||
|   | ||||
| @@ -1,3 +1,4 @@ | ||||
| #jinja2: lstrip_blocks: "True" | ||||
| { | ||||
| 	"m.server": "{{ matrix_server_fqn_matrix }}:8448" | ||||
| } | ||||
|   | ||||
| @@ -1,3 +1,4 @@ | ||||
| #jinja2: lstrip_blocks: "True" | ||||
| #!/bin/bash | ||||
|  | ||||
| if [ "$(id -u)" != "0" ]; then | ||||
|   | ||||
| @@ -1,3 +1,4 @@ | ||||
| #jinja2: lstrip_blocks: "True" | ||||
| { | ||||
| 	"Matrix": { | ||||
| 		"HomeserverDomainName": "{{ matrix_corporal_matrix_homeserver_domain_name }}", | ||||
|   | ||||
| @@ -1,3 +1,4 @@ | ||||
| #jinja2: lstrip_blocks: "True" | ||||
| [Unit] | ||||
| Description=Matrix Corporal | ||||
| {% for service in matrix_corporal_systemd_required_services_list %} | ||||
|   | ||||
| @@ -1,3 +1,4 @@ | ||||
| #jinja2: lstrip_blocks: "True" | ||||
| [Unit] | ||||
| Description=Matrix Coturn server | ||||
| {% for service in matrix_coturn_systemd_required_services_list %} | ||||
|   | ||||
| @@ -1,3 +1,4 @@ | ||||
| #jinja2: lstrip_blocks: "True" | ||||
| use-auth-secret | ||||
| static-auth-secret={{ matrix_coturn_turn_static_auth_secret }} | ||||
| realm=turn.{{ matrix_server_fqn_matrix }} | ||||
|   | ||||
| @@ -1,3 +1,4 @@ | ||||
| #jinja2: lstrip_blocks: "True" | ||||
| [Unit] | ||||
| Description=Matrix Dimension | ||||
| After=docker.service | ||||
|   | ||||
| @@ -1,3 +1,4 @@ | ||||
| #jinja2: lstrip_blocks: "True" | ||||
| {% if matrix_mailer_relay_use %} | ||||
| SMARTHOST={{ matrix_mailer_relay_host_name }}::{{ matrix_mailer_relay_host_port }} | ||||
| {% endif %} | ||||
|   | ||||
| @@ -1,3 +1,4 @@ | ||||
| #jinja2: lstrip_blocks: "True" | ||||
| [Unit] | ||||
| Description=Matrix mailer | ||||
| After=docker.service | ||||
|   | ||||
| @@ -1,3 +1,4 @@ | ||||
| #jinja2: lstrip_blocks: "True" | ||||
| [Unit] | ||||
| Description=Matrix mxisd Identity server | ||||
| {% for service in matrix_mxisd_systemd_required_services_list %} | ||||
|   | ||||
| @@ -1,3 +1,4 @@ | ||||
| #jinja2: lstrip_blocks: "True" | ||||
| server { | ||||
| 	listen {{ 8080 if matrix_nginx_proxy_enabled else 80 }}; | ||||
| 	server_name {{ matrix_nginx_proxy_proxy_dimension_hostname }}; | ||||
|   | ||||
| @@ -1,3 +1,4 @@ | ||||
| #jinja2: lstrip_blocks: "True" | ||||
| server { | ||||
| 	listen {{ 8080 if matrix_nginx_proxy_enabled else 80 }}; | ||||
| 	server_name {{ matrix_nginx_proxy_base_domain_hostname }}; | ||||
|   | ||||
| @@ -1,3 +1,4 @@ | ||||
| #jinja2: lstrip_blocks: "True" | ||||
| server { | ||||
| 	listen {{ 8080 if matrix_nginx_proxy_enabled else 80 }}; | ||||
| 	server_name {{ matrix_nginx_proxy_proxy_riot_hostname }}; | ||||
|   | ||||
| @@ -1,3 +1,4 @@ | ||||
| #jinja2: lstrip_blocks: "True" | ||||
| server { | ||||
| 	listen {{ 8080 if matrix_nginx_proxy_enabled else 80 }}; | ||||
| 	server_name {{ matrix_nginx_proxy_proxy_matrix_hostname }}; | ||||
|   | ||||
| @@ -1,3 +1,4 @@ | ||||
| #jinja2: lstrip_blocks: "True" | ||||
| # The default is aligned to the CPU's cache size, | ||||
| # which can sometimes be too low to handle our 2 vhosts (Synapse and Riot). | ||||
| # | ||||
|   | ||||
| @@ -1,2 +1,3 @@ | ||||
| #jinja2: lstrip_blocks: "True" | ||||
| # User and password for protecting /_synapse/metrics URI | ||||
| prometheus:{{ matrix_nginx_proxy_proxy_synapse_metrics_basic_auth_key }} | ||||
|   | ||||
| @@ -1,3 +1,4 @@ | ||||
| #jinja2: lstrip_blocks: "True" | ||||
| # This is a custom nginx configuration file that we use in the container (instead of the default one), | ||||
| # because it allows us to run nginx with a non-root user. | ||||
| # | ||||
|   | ||||
| @@ -1,3 +1,4 @@ | ||||
| #jinja2: lstrip_blocks: "True" | ||||
| [Unit] | ||||
| Description=Matrix nginx-proxy server | ||||
| {% for service in matrix_nginx_proxy_systemd_required_services_list %} | ||||
|   | ||||
| @@ -1,3 +1,4 @@ | ||||
| #jinja2: lstrip_blocks: "True" | ||||
| #!/bin/bash | ||||
|  | ||||
| # For renewal to work, matrix-nginx-proxy (or another webserver, if matrix-nginx-proxy is disabled) | ||||
|   | ||||
| @@ -1,3 +1,4 @@ | ||||
| #jinja2: lstrip_blocks: "True" | ||||
| PGUSER={{ matrix_postgres_connection_username }} | ||||
| PGPASSWORD={{ matrix_postgres_connection_password }} | ||||
| PGDATABASE={{ matrix_postgres_db_name }} | ||||
| @@ -1,3 +1,4 @@ | ||||
| #jinja2: lstrip_blocks: "True" | ||||
| POSTGRES_USER={{ matrix_postgres_connection_username }} | ||||
| POSTGRES_PASSWORD={{ matrix_postgres_connection_password }} | ||||
| POSTGRES_DB={{ matrix_postgres_db_name }} | ||||
| @@ -1,3 +1,4 @@ | ||||
| #jinja2: lstrip_blocks: "True" | ||||
| [Unit] | ||||
| Description=Matrix Postgres server | ||||
| After=docker.service | ||||
|   | ||||
| @@ -1,3 +1,4 @@ | ||||
| #jinja2: lstrip_blocks: "True" | ||||
| #!/bin/bash | ||||
|  | ||||
| if [ $# -ne 1 ]; then | ||||
|   | ||||
| @@ -1,3 +1,4 @@ | ||||
| #jinja2: lstrip_blocks: "True" | ||||
| #!/bin/bash | ||||
|  | ||||
| docker run \ | ||||
|   | ||||
| @@ -1,3 +1,4 @@ | ||||
| #jinja2: lstrip_blocks: "True" | ||||
| #!/bin/bash | ||||
|  | ||||
| if [ $# -ne 2 ]; then | ||||
|   | ||||
| @@ -1,3 +1,4 @@ | ||||
| #jinja2: lstrip_blocks: "True" | ||||
| { | ||||
| 	"default_hs_url": {{ matrix_riot_web_default_hs_url|string|to_json }}, | ||||
| 	"default_is_url": {{ matrix_riot_web_default_is_url|string|to_json }}, | ||||
|   | ||||
| @@ -1,3 +1,4 @@ | ||||
| #jinja2: lstrip_blocks: "True" | ||||
| # This is a custom nginx configuration file that we use in the container (instead of the default one), | ||||
| # because it allows us to run nginx with a non-root user. | ||||
| # | ||||
|   | ||||
| @@ -1,3 +1,4 @@ | ||||
| #jinja2: lstrip_blocks: "True" | ||||
| [Unit] | ||||
| Description=Matrix riot-web server | ||||
| {% for service in matrix_riot_web_systemd_required_services_list %} | ||||
|   | ||||
| @@ -1,3 +1,4 @@ | ||||
| #jinja2: lstrip_blocks: "True" | ||||
| <style type="text/css"> | ||||
|  | ||||
| /* we deliberately inline style here to avoid flash-of-CSS problems, and to avoid | ||||
|   | ||||
| @@ -1,3 +1,4 @@ | ||||
| #jinja2: lstrip_blocks: "True" | ||||
| [Unit] | ||||
| Description=Matrix Appservice Discord server | ||||
| After=docker.service | ||||
|   | ||||
| @@ -1,3 +1,4 @@ | ||||
| #jinja2: lstrip_blocks: "True" | ||||
| [Unit] | ||||
| Description=Matrix Appservice IRC server | ||||
| After=docker.service | ||||
|   | ||||
| @@ -1,3 +1,4 @@ | ||||
| #jinja2: lstrip_blocks: "True" | ||||
| # Homeserver details | ||||
| homeserver: | ||||
|     # The address that this appservice can use to connect to the homeserver. | ||||
|   | ||||
| @@ -1,3 +1,4 @@ | ||||
| #jinja2: lstrip_blocks: "True" | ||||
| [Unit] | ||||
| Description=Matrix Mautrix Telegram server | ||||
| After=docker.service | ||||
|   | ||||
| @@ -1,3 +1,4 @@ | ||||
| #jinja2: lstrip_blocks: "True" | ||||
| # Homeserver details. | ||||
| homeserver: | ||||
|   # The address that this appservice can use to connect to the homeserver. | ||||
|   | ||||
| @@ -1,3 +1,4 @@ | ||||
| #jinja2: lstrip_blocks: "True" | ||||
| [Unit] | ||||
| Description=Matrix Mautrix Whatsapp server | ||||
| After=docker.service | ||||
|   | ||||
| @@ -1,2 +1,3 @@ | ||||
| #jinja2: lstrip_blocks: "True" | ||||
| AWS_ACCESS_KEY={{ matrix_s3_media_store_aws_access_key }} | ||||
| AWS_SECRET_KEY={{ matrix_s3_media_store_aws_secret_key }} | ||||
|   | ||||
| @@ -1,3 +1,4 @@ | ||||
| #jinja2: lstrip_blocks: "True" | ||||
| [Unit] | ||||
| Description=Matrix Goofys media store | ||||
| After=docker.service | ||||
|   | ||||
| @@ -1,2 +1,3 @@ | ||||
| #jinja2: lstrip_blocks: "True" | ||||
| SYNAPSE_CONFIG_PATH=/data/homeserver.yaml | ||||
| SYNAPSE_CACHE_FACTOR={{ matrix_synapse_cache_factor }} | ||||
|   | ||||
| @@ -1,3 +1,4 @@ | ||||
| #jinja2: lstrip_blocks: "True" | ||||
| # vim:ft=yaml | ||||
|  | ||||
| ## Server ## | ||||
|   | ||||
| @@ -1,3 +1,4 @@ | ||||
| #jinja2: lstrip_blocks: "True" | ||||
|  | ||||
| version: 1 | ||||
|  | ||||
|   | ||||
| @@ -1,3 +1,4 @@ | ||||
| #jinja2: lstrip_blocks: "True" | ||||
| [Unit] | ||||
| Description=Synapse server | ||||
| {% for service in matrix_synapse_systemd_required_services_list %} | ||||
|   | ||||
| @@ -1,3 +1,4 @@ | ||||
| #jinja2: lstrip_blocks: "True" | ||||
| #!/bin/bash | ||||
|  | ||||
| if [ $# -ne 3 ]; then | ||||
|   | ||||
		Reference in New Issue
	
	Block a user