Browse Source

Different matrix port

Bob Mottram 8 years ago
parent
commit
486dd18fdb
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      src/freedombone-app-matrix

+ 3
- 3
src/freedombone-app-matrix View File

40
 MATRIX_DATA_DIR='/var/lib/matrix'
40
 MATRIX_DATA_DIR='/var/lib/matrix'
41
 MATRIX_HTTP_PORT=8558
41
 MATRIX_HTTP_PORT=8558
42
 MATRIX_ID_HTTP_PORT=8557
42
 MATRIX_ID_HTTP_PORT=8557
43
-MATRIX_PORT=8448
43
+MATRIX_PORT=8008
44
 MATRIX_ID_PORT=8081
44
 MATRIX_ID_PORT=8081
45
 MATRIX_ONION_PORT=8109
45
 MATRIX_ONION_PORT=8109
46
 MATRIX_ID_ONION_PORT=8111
46
 MATRIX_ID_ONION_PORT=8111
89
             echo '  location / {' >> $matrix_nginx_site
89
             echo '  location / {' >> $matrix_nginx_site
90
             function_check nginx_limits
90
             function_check nginx_limits
91
             nginx_limits ${DEFAULT_DOMAIN_NAME} '15m'
91
             nginx_limits ${DEFAULT_DOMAIN_NAME} '15m'
92
-            echo "      proxy_pass http://localhost:${MATRIX_PORT};" >> $matrix_nginx_site
92
+            echo "      proxy_pass http://localhost:${MATRIX_PORT}/_matrix;" >> $matrix_nginx_site
93
             echo '      proxy_set_header X-Forwarded-For $remote_addr;' >> $matrix_nginx_site
93
             echo '      proxy_set_header X-Forwarded-For $remote_addr;' >> $matrix_nginx_site
94
             echo '  }' >> $matrix_nginx_site
94
             echo '  }' >> $matrix_nginx_site
95
             echo '}' >> $matrix_nginx_site
95
             echo '}' >> $matrix_nginx_site
142
         echo '  location / {' >> $matrix_nginx_site
142
         echo '  location / {' >> $matrix_nginx_site
143
         function_check nginx_limits
143
         function_check nginx_limits
144
         nginx_limits $DEFAULT_DOMAIN_NAME '15m'
144
         nginx_limits $DEFAULT_DOMAIN_NAME '15m'
145
-        echo "      proxy_pass http://localhost:${MATRIX_PORT};" >> $matrix_nginx_site
145
+        echo "      proxy_pass http://localhost:${MATRIX_PORT}/_matrix;" >> $matrix_nginx_site
146
         echo '      proxy_set_header X-Forwarded-For $remote_addr;' >> $matrix_nginx_site
146
         echo '      proxy_set_header X-Forwarded-For $remote_addr;' >> $matrix_nginx_site
147
         echo '  }' >> $matrix_nginx_site
147
         echo '  }' >> $matrix_nginx_site
148
         echo '}' >> $matrix_nginx_site
148
         echo '}' >> $matrix_nginx_site