app/matrix: parametrize configuration

This adds cfg.cas.enable, and parametrizes homeserver.yaml from jsonnet
configuration.

Change-Id: I37a9b27a7080248cdd70282b897bbf6d3f9ae5f6
diff --git a/app/matrix/lib/synapse/homeserver.yaml b/app/matrix/lib/synapse/homeserver.yaml
index 6152807..2c39c23 100644
--- a/app/matrix/lib/synapse/homeserver.yaml
+++ b/app/matrix/lib/synapse/homeserver.yaml
@@ -2,8 +2,8 @@
 

 ## Server ##

 

-server_name: "hackerspace.pl"

-public_baseurl: "https://matrix.hackerspace.pl"

+server_name: "example.com"

+public_baseurl: "https://example.com"

 pid_file: /homeserver.pid

 web_client: False

 soft_file_limit: 0

@@ -117,15 +117,6 @@
     - "m.room.avatar"

     - "m.room.name"

 

-

-{% if SYNAPSE_APPSERVICES %}

-app_service_config_files:

-{% for appservice in SYNAPSE_APPSERVICES %}    - "{{ appservice }}"

-{% endfor %}

-{% else %}

-app_service_config_files: []

-{% endif %}

-

 macaroon_secret_key: "{{ SYNAPSE_MACAROON_SECRET_KEY }}"

 expire_access_token: False

 

@@ -147,6 +138,4 @@
    enabled: false

 

 cas_config:

-  enabled: true

-  server_url: "https://matrix.hackerspace.pl/_cas"

-  service_url: "https://matrix.hackerspace.pl"

+  enabled: false