Changes

Jump to navigation Jump to search
645 bytes added ,  16:20, 16 February 2023
Line 16: Line 16:  
|tags=File,this,with,a,list,of,tags
 
|tags=File,this,with,a,list,of,tags
 
}}
 
}}
 
+
<blockquote style="float: right;">[[File:Matrix logo.svg|250px]]</blockquote><br>
 
===Maintainer===
 
===Maintainer===
 
[[User:reetp|John Crisp]]  
 
[[User:reetp|John Crisp]]  
Line 55: Line 55:  
  config set matrix service access public status enabled TCPPort 8448
 
  config set matrix service access public status enabled TCPPort 8448
    +
Set up a domain.
 +
 +
db domains set matrix.mydomain.net domain\
 +
    Content Primary\
 +
    Description Matrix\
 +
    Nameservers localhost\
 +
    TemplatePath ProxyPassVirtualMatrix\
 +
    letsencryptSSLcert enabled
    
===Apache===
 
===Apache===
 +
 +
Note to self - this looks good inormation
 +
 +
https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/master/examples/apache/matrix-synapse.conf
    
  mkdir -p /etc/e-smith/templates/etc/httpd/conf/httpd.conf/ProxyPassVirtualMatrix
 
  mkdir -p /etc/e-smith/templates/etc/httpd/conf/httpd.conf/ProxyPassVirtualMatrix
Line 69: Line 81:  
  $OUT .=<<_EVERYWHERE;
 
  $OUT .=<<_EVERYWHERE;
 
  <VirtualHost 0.0.0.0:80>
 
  <VirtualHost 0.0.0.0:80>
     ServerName matrix.sovereigninsignia.com
+
     ServerName matrix.mydomain.net
 
     DocumentRoot /home/e-smith/files/ibays/Primary/html
 
     DocumentRoot /home/e-smith/files/ibays/Primary/html
 
     RewriteEngine on
 
     RewriteEngine on
Line 79: Line 91:  
   
 
   
 
  $OUT .=<<_THERE;
 
  $OUT .=<<_THERE;
 +
Listen 8448
 
  <VirtualHost 0.0.0.0:8448>
 
  <VirtualHost 0.0.0.0:8448>
 
     SSLEngine on
 
     SSLEngine on
     ServerName matrix.sovereigninsignia.com
+
     ServerName matrix.mydomain.net
 
     RequestHeader set "X-Forwarded-Proto" "https"
 
     RequestHeader set "X-Forwarded-Proto" "https"
 
     AllowEncodedSlashes NoDecode
 
     AllowEncodedSlashes NoDecode
Line 94: Line 107:  
  <VirtualHost 0.0.0.0:443>
 
  <VirtualHost 0.0.0.0:443>
 
     SSLEngine on
 
     SSLEngine on
     ServerName matrix.sovereigninsignia.com
+
     ServerName matrix.mydomain.net
 
     ProxyPass /.well-known/acme-challenge/ !
 
     ProxyPass /.well-known/acme-challenge/ !
 
     DocumentRoot /home/e-smith/files/ibays/Primary/html
 
     DocumentRoot /home/e-smith/files/ibays/Primary/html
Line 115: Line 128:  
  }
 
  }
    +
Check you have access to .acme-challenge/well-known and get your letsencrypt certificate.
    +
nano /home/e-smith/files/docker/configs/docker-compose.yml
   −
/home/e-smith/files/docker/configs/docker-compose.yml
+
Paste this:
    
  version: '2.3'
 
  version: '2.3'
 
  services:
 
  services:
  element:
+
# Hmmm - desktop app should not be run on the same server as matrix
    image: vectorim/element-web:latest
+
# https://hub.docker.com/r/vectorim/element-web/
    restart: unless-stopped
+
# element:
    volumes:
+
image: vectorim/element-web:latest
      - ./element-config.json:/app/config.json
+
restart: unless-stopped
 +
volumes:
 +
#    - ./element-config.json:/app/config.json
 
   synapse:
 
   synapse:
 
     container_name: synapse
 
     container_name: synapse
Line 133: Line 150:  
       - ./data:/data
 
       - ./data:/data
 
     environment:
 
     environment:
         SYNAPSE_SERVER_NAME: "matrix.sovereigninsignia.com"
+
         SYNAPSE_SERVER_NAME: "matrix.mydomain.net"
 
         SYNAPSE_REPORT_STATS: "yes"
 
         SYNAPSE_REPORT_STATS: "yes"
 
     ports:
 
     ports:
Line 178: Line 195:     
  nano /home/e-smith/files/docker/configs/data/homeserver.yaml
 
  nano /home/e-smith/files/docker/configs/data/homeserver.yaml
      
=== Configuration ===
 
=== Configuration ===

Navigation menu