Przeglądaj źródła

Merge pull request #153 from huguesdk/bugfix/whitespace_in_templates

Fix whitespace in templates
pull/167/head
Slavi Pantaleev 6 lat temu
committed by GitHub
rodzic
commit
105364f548
Nie znaleziono w bazie danych klucza dla tego podpisu ID klucza GPG: 4AEE18F83AFDEB23
43 zmienionych plików z 43 dodań i 0 usunięć
  1. +1
    -0
      roles/matrix-base/templates/static-files/well-known/matrix-client.j2
  2. +1
    -0
      roles/matrix-base/templates/static-files/well-known/matrix-server.j2
  3. +1
    -0
      roles/matrix-base/templates/usr-local-bin/matrix-remove-all.j2
  4. +1
    -0
      roles/matrix-corporal/templates/config.json.j2
  5. +1
    -0
      roles/matrix-corporal/templates/systemd/matrix-corporal.service.j2
  6. +1
    -0
      roles/matrix-coturn/templates/systemd/matrix-coturn.service.j2
  7. +1
    -0
      roles/matrix-coturn/templates/turnserver.conf.j2
  8. +1
    -0
      roles/matrix-dimension/templates/systemd/matrix-dimension.service.j2
  9. +1
    -0
      roles/matrix-mailer/templates/env-mailer.j2
  10. +1
    -0
      roles/matrix-mailer/templates/systemd/matrix-mailer.service.j2
  11. +1
    -0
      roles/matrix-mxisd/templates/systemd/matrix-mxisd.service.j2
  12. +1
    -0
      roles/matrix-nginx-proxy/templates/nginx/conf.d/matrix-dimension.conf.j2
  13. +1
    -0
      roles/matrix-nginx-proxy/templates/nginx/conf.d/matrix-domain.conf.j2
  14. +1
    -0
      roles/matrix-nginx-proxy/templates/nginx/conf.d/matrix-riot-web.conf.j2
  15. +1
    -0
      roles/matrix-nginx-proxy/templates/nginx/conf.d/matrix-synapse.conf.j2
  16. +1
    -0
      roles/matrix-nginx-proxy/templates/nginx/conf.d/nginx-http.conf.j2
  17. +1
    -0
      roles/matrix-nginx-proxy/templates/nginx/matrix-synapse-metrics-htpasswd.j2
  18. +1
    -0
      roles/matrix-nginx-proxy/templates/nginx/nginx.conf.j2
  19. +1
    -0
      roles/matrix-nginx-proxy/templates/systemd/matrix-nginx-proxy.service.j2
  20. +1
    -0
      roles/matrix-nginx-proxy/templates/usr-local-bin/matrix-ssl-lets-encrypt-certificates-renew.j2
  21. +1
    -0
      roles/matrix-postgres/templates/env-postgres-psql.j2
  22. +1
    -0
      roles/matrix-postgres/templates/env-postgres-server.j2
  23. +1
    -0
      roles/matrix-postgres/templates/systemd/matrix-postgres.service.j2
  24. +1
    -0
      roles/matrix-postgres/templates/usr-local-bin/matrix-make-user-admin.j2
  25. +1
    -0
      roles/matrix-postgres/templates/usr-local-bin/matrix-postgres-cli.j2
  26. +1
    -0
      roles/matrix-postgres/templates/usr-local-bin/matrix-postgres-update-user-password-hash.j2
  27. +1
    -0
      roles/matrix-riot-web/templates/config.json.j2
  28. +1
    -0
      roles/matrix-riot-web/templates/nginx.conf.j2
  29. +1
    -0
      roles/matrix-riot-web/templates/systemd/matrix-riot-web.service.j2
  30. +1
    -0
      roles/matrix-riot-web/templates/welcome.html.j2
  31. +1
    -0
      roles/matrix-synapse/templates/ext/appservice-discord/systemd/matrix-appservice-discord.service.j2
  32. +1
    -0
      roles/matrix-synapse/templates/ext/appservice-irc/systemd/matrix-appservice-irc.service.j2
  33. +1
    -0
      roles/matrix-synapse/templates/ext/mautrix-telegram/config.yaml.j2
  34. +1
    -0
      roles/matrix-synapse/templates/ext/mautrix-telegram/systemd/matrix-mautrix-telegram.service.j2
  35. +1
    -0
      roles/matrix-synapse/templates/ext/mautrix-whatsapp/config.yaml.j2
  36. +1
    -0
      roles/matrix-synapse/templates/ext/mautrix-whatsapp/systemd/matrix-mautrix-whatsapp.service.j2
  37. +1
    -0
      roles/matrix-synapse/templates/goofys/env-goofys.j2
  38. +1
    -0
      roles/matrix-synapse/templates/goofys/systemd/matrix-goofys.service.j2
  39. +1
    -0
      roles/matrix-synapse/templates/synapse/env-synapse.j2
  40. +1
    -0
      roles/matrix-synapse/templates/synapse/homeserver.yaml.j2
  41. +1
    -0
      roles/matrix-synapse/templates/synapse/synapse.log.config.j2
  42. +1
    -0
      roles/matrix-synapse/templates/synapse/systemd/matrix-synapse.service.j2
  43. +1
    -0
      roles/matrix-synapse/templates/synapse/usr-local-bin/matrix-synapse-register-user.j2

+ 1
- 0
roles/matrix-base/templates/static-files/well-known/matrix-client.j2 Wyświetl plik

@@ -1,3 +1,4 @@
#jinja2: lstrip_blocks: "True"
{
"m.homeserver": {
"base_url": "{{ matrix_homeserver_url }}"


+ 1
- 0
roles/matrix-base/templates/static-files/well-known/matrix-server.j2 Wyświetl plik

@@ -1,3 +1,4 @@
#jinja2: lstrip_blocks: "True"
{
"m.server": "{{ matrix_server_fqn_matrix }}:8448"
}

+ 1
- 0
roles/matrix-base/templates/usr-local-bin/matrix-remove-all.j2 Wyświetl plik

@@ -1,3 +1,4 @@
#jinja2: lstrip_blocks: "True"
#!/bin/bash

if [ "$(id -u)" != "0" ]; then


+ 1
- 0
roles/matrix-corporal/templates/config.json.j2 Wyświetl plik

@@ -1,3 +1,4 @@
#jinja2: lstrip_blocks: "True"
{
"Matrix": {
"HomeserverDomainName": "{{ matrix_corporal_matrix_homeserver_domain_name }}",


+ 1
- 0
roles/matrix-corporal/templates/systemd/matrix-corporal.service.j2 Wyświetl plik

@@ -1,3 +1,4 @@
#jinja2: lstrip_blocks: "True"
[Unit]
Description=Matrix Corporal
{% for service in matrix_corporal_systemd_required_services_list %}


+ 1
- 0
roles/matrix-coturn/templates/systemd/matrix-coturn.service.j2 Wyświetl plik

@@ -1,3 +1,4 @@
#jinja2: lstrip_blocks: "True"
[Unit]
Description=Matrix Coturn server
{% for service in matrix_coturn_systemd_required_services_list %}


+ 1
- 0
roles/matrix-coturn/templates/turnserver.conf.j2 Wyświetl plik

@@ -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
- 0
roles/matrix-dimension/templates/systemd/matrix-dimension.service.j2 Wyświetl plik

@@ -1,3 +1,4 @@
#jinja2: lstrip_blocks: "True"
[Unit]
Description=Matrix Dimension
After=docker.service


+ 1
- 0
roles/matrix-mailer/templates/env-mailer.j2 Wyświetl plik

@@ -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
- 0
roles/matrix-mailer/templates/systemd/matrix-mailer.service.j2 Wyświetl plik

@@ -1,3 +1,4 @@
#jinja2: lstrip_blocks: "True"
[Unit]
Description=Matrix mailer
After=docker.service


+ 1
- 0
roles/matrix-mxisd/templates/systemd/matrix-mxisd.service.j2 Wyświetl plik

@@ -1,3 +1,4 @@
#jinja2: lstrip_blocks: "True"
[Unit]
Description=Matrix mxisd Identity server
{% for service in matrix_mxisd_systemd_required_services_list %}


+ 1
- 0
roles/matrix-nginx-proxy/templates/nginx/conf.d/matrix-dimension.conf.j2 Wyświetl plik

@@ -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
- 0
roles/matrix-nginx-proxy/templates/nginx/conf.d/matrix-domain.conf.j2 Wyświetl plik

@@ -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
- 0
roles/matrix-nginx-proxy/templates/nginx/conf.d/matrix-riot-web.conf.j2 Wyświetl plik

@@ -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
- 0
roles/matrix-nginx-proxy/templates/nginx/conf.d/matrix-synapse.conf.j2 Wyświetl plik

@@ -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
- 0
roles/matrix-nginx-proxy/templates/nginx/conf.d/nginx-http.conf.j2 Wyświetl plik

@@ -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
- 0
roles/matrix-nginx-proxy/templates/nginx/matrix-synapse-metrics-htpasswd.j2 Wyświetl plik

@@ -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
- 0
roles/matrix-nginx-proxy/templates/nginx/nginx.conf.j2 Wyświetl plik

@@ -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
- 0
roles/matrix-nginx-proxy/templates/systemd/matrix-nginx-proxy.service.j2 Wyświetl plik

@@ -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
- 0
roles/matrix-nginx-proxy/templates/usr-local-bin/matrix-ssl-lets-encrypt-certificates-renew.j2 Wyświetl plik

@@ -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
- 0
roles/matrix-postgres/templates/env-postgres-psql.j2 Wyświetl plik

@@ -1,3 +1,4 @@
#jinja2: lstrip_blocks: "True"
PGUSER={{ matrix_postgres_connection_username }}
PGPASSWORD={{ matrix_postgres_connection_password }}
PGDATABASE={{ matrix_postgres_db_name }}

+ 1
- 0
roles/matrix-postgres/templates/env-postgres-server.j2 Wyświetl plik

@@ -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
- 0
roles/matrix-postgres/templates/systemd/matrix-postgres.service.j2 Wyświetl plik

@@ -1,3 +1,4 @@
#jinja2: lstrip_blocks: "True"
[Unit]
Description=Matrix Postgres server
After=docker.service


+ 1
- 0
roles/matrix-postgres/templates/usr-local-bin/matrix-make-user-admin.j2 Wyświetl plik

@@ -1,3 +1,4 @@
#jinja2: lstrip_blocks: "True"
#!/bin/bash

if [ $# -ne 1 ]; then


+ 1
- 0
roles/matrix-postgres/templates/usr-local-bin/matrix-postgres-cli.j2 Wyświetl plik

@@ -1,3 +1,4 @@
#jinja2: lstrip_blocks: "True"
#!/bin/bash

docker run \


+ 1
- 0
roles/matrix-postgres/templates/usr-local-bin/matrix-postgres-update-user-password-hash.j2 Wyświetl plik

@@ -1,3 +1,4 @@
#jinja2: lstrip_blocks: "True"
#!/bin/bash

if [ $# -ne 2 ]; then


+ 1
- 0
roles/matrix-riot-web/templates/config.json.j2 Wyświetl plik

@@ -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
- 0
roles/matrix-riot-web/templates/nginx.conf.j2 Wyświetl plik

@@ -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
- 0
roles/matrix-riot-web/templates/systemd/matrix-riot-web.service.j2 Wyświetl plik

@@ -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
- 0
roles/matrix-riot-web/templates/welcome.html.j2 Wyświetl plik

@@ -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
- 0
roles/matrix-synapse/templates/ext/appservice-discord/systemd/matrix-appservice-discord.service.j2 Wyświetl plik

@@ -1,3 +1,4 @@
#jinja2: lstrip_blocks: "True"
[Unit]
Description=Matrix Appservice Discord server
After=docker.service


+ 1
- 0
roles/matrix-synapse/templates/ext/appservice-irc/systemd/matrix-appservice-irc.service.j2 Wyświetl plik

@@ -1,3 +1,4 @@
#jinja2: lstrip_blocks: "True"
[Unit]
Description=Matrix Appservice IRC server
After=docker.service


+ 1
- 0
roles/matrix-synapse/templates/ext/mautrix-telegram/config.yaml.j2 Wyświetl plik

@@ -1,3 +1,4 @@
#jinja2: lstrip_blocks: "True"
# Homeserver details
homeserver:
# The address that this appservice can use to connect to the homeserver.


+ 1
- 0
roles/matrix-synapse/templates/ext/mautrix-telegram/systemd/matrix-mautrix-telegram.service.j2 Wyświetl plik

@@ -1,3 +1,4 @@
#jinja2: lstrip_blocks: "True"
[Unit]
Description=Matrix Mautrix Telegram server
After=docker.service


+ 1
- 0
roles/matrix-synapse/templates/ext/mautrix-whatsapp/config.yaml.j2 Wyświetl plik

@@ -1,3 +1,4 @@
#jinja2: lstrip_blocks: "True"
# Homeserver details.
homeserver:
# The address that this appservice can use to connect to the homeserver.


+ 1
- 0
roles/matrix-synapse/templates/ext/mautrix-whatsapp/systemd/matrix-mautrix-whatsapp.service.j2 Wyświetl plik

@@ -1,3 +1,4 @@
#jinja2: lstrip_blocks: "True"
[Unit]
Description=Matrix Mautrix Whatsapp server
After=docker.service


+ 1
- 0
roles/matrix-synapse/templates/goofys/env-goofys.j2 Wyświetl plik

@@ -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
- 0
roles/matrix-synapse/templates/goofys/systemd/matrix-goofys.service.j2 Wyświetl plik

@@ -1,3 +1,4 @@
#jinja2: lstrip_blocks: "True"
[Unit]
Description=Matrix Goofys media store
After=docker.service


+ 1
- 0
roles/matrix-synapse/templates/synapse/env-synapse.j2 Wyświetl plik

@@ -1,2 +1,3 @@
#jinja2: lstrip_blocks: "True"
SYNAPSE_CONFIG_PATH=/data/homeserver.yaml
SYNAPSE_CACHE_FACTOR={{ matrix_synapse_cache_factor }}

+ 1
- 0
roles/matrix-synapse/templates/synapse/homeserver.yaml.j2 Wyświetl plik

@@ -1,3 +1,4 @@
#jinja2: lstrip_blocks: "True"
# vim:ft=yaml

## Server ##


+ 1
- 0
roles/matrix-synapse/templates/synapse/synapse.log.config.j2 Wyświetl plik

@@ -1,3 +1,4 @@
#jinja2: lstrip_blocks: "True"

version: 1



+ 1
- 0
roles/matrix-synapse/templates/synapse/systemd/matrix-synapse.service.j2 Wyświetl plik

@@ -1,3 +1,4 @@
#jinja2: lstrip_blocks: "True"
[Unit]
Description=Synapse server
{% for service in matrix_synapse_systemd_required_services_list %}


+ 1
- 0
roles/matrix-synapse/templates/synapse/usr-local-bin/matrix-synapse-register-user.j2 Wyświetl plik

@@ -1,3 +1,4 @@
#jinja2: lstrip_blocks: "True"
#!/bin/bash

if [ $# -ne 3 ]; then


Ładowanie…
Anuluj
Zapisz