summaryrefslogtreecommitdiff
path: root/tw/services/matrix.scm
blob: 6b184f495d124c955fec9db6f4e73a0fbba332ae (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
(define-module (tw services matrix)
  #:use-module (gnu services)
  #:use-module (tw services web))

(define-public %matrix-services
  (list (simple-service 'synapse-reverse-proxy https-reverse-proxy-service-type
          ;; Synapse can't access certbot certs, but nginx can, so proxy HTTPS
          ;; access through. Also, it's good to have Synapse available on :443.
          (list (https-reverse-proxy-configuration
                 (domains '("matrix.twilken.net"))
                 (destination-port 48448))))

        ;; TODO: Postgres for Synapse
        ;; (service postgresql-service-type
        ;;   (postgresql-configuration
        ;;    (postgresql postgresql-15)
        ;;    (data-directory "/var/lib/postgresql/data")))

        ;; (service postgresql-role-service-type
        ;;   (postgresql-role-configuration
        ;;    (roles (list (postgresql-role
        ;;                  (name "synapse")  ; TODO
        ;;                  (create-database? #t))))))

        ;; TODO: Matrix/Synapse
        ;; TODO: Matrix bridges
        ))