diff options
Diffstat (limited to 'deployment/systems')
| -rw-r--r-- | deployment/systems/aisaka.scm | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/deployment/systems/aisaka.scm b/deployment/systems/aisaka.scm index e5c2945..64fd07b 100644 --- a/deployment/systems/aisaka.scm +++ b/deployment/systems/aisaka.scm @@ -242,7 +242,8 @@ (body (list "proxy_pass http://localhost:8008 ;" "proxy_set_header X-Forwarded-For $remote_addr ;" "proxy_set_header X-Forwarded-Proto $scheme ;" - "proxy_set_header Host $host:$server_port ;")) + "proxy_set_header Host $host:$server_port ;" + "client_max_body_size 1024M ;")) (uri "~ ^(/_matrix|/_synapse/client)"))) (define nginx-location-proxy-radicale @@ -268,6 +269,13 @@ (body (list "root /srv/www/marek/marekpasnikowski.pl ;")) (uri "/.well-known"))) +(define nginx-location-well-known-matrix-client + (gnu:services:web:nginx-location-configuration + (body (list "return 200 '{\"m.homeserver\": {\"base_url\": \"https://matrix.marekpasnikowski.pl\"}}' ;" + "default_type application/json ;" + "add_header Access-Control-Allow-Origin * ;")) + (uri "/.well-known/matrix/client"))) + (define nginx-server-cgit (let ((git-http- (gnu:services:version-control:git-http-nginx-location-configuration git-http-configuration))) @@ -293,18 +301,23 @@ (define nginx-server-matrix (gnu:services:web:nginx-server-configuration (locations (list nginx-location-proxy-matrix)) - (listen (list "192.168.10.2:443 ssl")) - (root gnu:packages:matrix:synapse) + (listen (list "192.168.10.2:443 ssl" + "192.168.10.2:8448 ssl default_server")) + (root (file-append gnu:packages:matrix:synapse + "/lib/python3.11/site-packages/synapse/static")) (server-name (list "matrix.marekpasnikowski.pl")) (ssl-certificate "/etc/letsencrypt/live/marekpasnikowski.pl/fullchain.pem") - (ssl-certificate-key "/etc/letsencrypt/live/marekpasnikowski.pl/privkey.pem"))) + (ssl-certificate-key "/etc/letsencrypt/live/marekpasnikowski.pl/privkey.pem") + (raw-content (list "proxy_http_version 1.1 ;")))) (define nginx-server-portal (gnu:services:web:nginx-server-configuration - (locations (list nginx-location-well-known)) + (locations (list nginx-location-well-known + nginx-location-well-known-matrix-client)) (listen (list "192.168.10.2:443 ssl")) (root "/home/marek/Publiczne/www") - (server-name (list "marekpasnikowski.pl")) + (server-name (list 'default + "marekpasnikowski.pl")) (ssl-certificate "/etc/letsencrypt/live/marekpasnikowski.pl/fullchain.pem") (ssl-certificate-key "/etc/letsencrypt/live/marekpasnikowski.pl/privkey.pem"))) |
