Compare commits
2 Commits
6.1.3+v1.1
...
5.0.6+v1.1
Author | SHA1 | Date | |
---|---|---|---|
bfe62d023c | |||
81d2827bc9 |
@ -167,6 +167,3 @@ RETENTION_MAX_LIFETIME=4w
|
|||||||
#COMPOSE_FILE="$COMPOSE_FILE:compose.shared_secret_auth.yml"
|
#COMPOSE_FILE="$COMPOSE_FILE:compose.shared_secret_auth.yml"
|
||||||
#SHARED_SECRET_AUTH_ENABLED=1
|
#SHARED_SECRET_AUTH_ENABLED=1
|
||||||
#SECRET_SHARED_SECRET_AUTH_VERSION=v1 # length=128
|
#SECRET_SHARED_SECRET_AUTH_VERSION=v1 # length=128
|
||||||
|
|
||||||
## Web Client (Redirect)
|
|
||||||
#WEB_CLIENT_LOCATION=https://element-web.example.com
|
|
||||||
|
@ -24,10 +24,6 @@
|
|||||||
|
|
||||||
## Tips & Tricks
|
## Tips & Tricks
|
||||||
|
|
||||||
### Create User
|
|
||||||
|
|
||||||
`register_new_matrix_user -u <username> -k $(cat /var/run/secrets/registration) -p <password>`
|
|
||||||
|
|
||||||
### Set Admin User
|
### Set Admin User
|
||||||
|
|
||||||
`abra app cmd YOURAPPDOMAIN db set_admin <adminuser>`
|
`abra app cmd YOURAPPDOMAIN db set_admin <adminuser>`
|
||||||
|
4
abra.sh
4
abra.sh
@ -1,11 +1,11 @@
|
|||||||
export DISCORD_BRIDGE_YAML_VERSION=v2
|
export DISCORD_BRIDGE_YAML_VERSION=v2
|
||||||
export ENTRYPOINT_CONF_VERSION=v2
|
export ENTRYPOINT_CONF_VERSION=v2
|
||||||
export HOMESERVER_YAML_VERSION=v29
|
export HOMESERVER_YAML_VERSION=v27
|
||||||
export LOG_CONFIG_VERSION=v2
|
export LOG_CONFIG_VERSION=v2
|
||||||
export SHARED_SECRET_AUTH_VERSION=v1
|
export SHARED_SECRET_AUTH_VERSION=v1
|
||||||
export SIGNAL_BRIDGE_YAML_VERSION=v4
|
export SIGNAL_BRIDGE_YAML_VERSION=v4
|
||||||
export TELEGRAM_BRIDGE_YAML_VERSION=v6
|
export TELEGRAM_BRIDGE_YAML_VERSION=v6
|
||||||
export NGINX_CONFIG_VERSION=v7
|
export NGINX_CONFIG_VERSION=v5
|
||||||
export WK_SERVER_VERSION=v1
|
export WK_SERVER_VERSION=v1
|
||||||
export WK_CLIENT_VERSION=v1
|
export WK_CLIENT_VERSION=v1
|
||||||
|
|
||||||
|
@ -1,15 +0,0 @@
|
|||||||
authentik:
|
|
||||||
env:
|
|
||||||
KEYCLOAK_ID: authentik
|
|
||||||
KEYCLOAK_NAME: sso
|
|
||||||
KEYCLOAK_URL: https://authentik.example.com/application/o/matrix/
|
|
||||||
KEYCLOAK_CLIENT_DOMAIN: https://element-web.example.com
|
|
||||||
KEYCLOAK_ALLOW_EXISTING_USERS: "true"
|
|
||||||
KEYCLOAK_CLIENT_ID: matrix
|
|
||||||
uncomment:
|
|
||||||
- compose.keycloak.yml
|
|
||||||
- KEYCLOAK_ENABLED
|
|
||||||
- KEYCLOAK_CLIENT_ID
|
|
||||||
- SECRET_KEYCLOAK_CLIENT_SECRET_VERSION
|
|
||||||
shared_secrets:
|
|
||||||
matrix_secret: keycloak_client_secret
|
|
@ -2,7 +2,7 @@
|
|||||||
version: "3.8"
|
version: "3.8"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
synapse:
|
||||||
environment:
|
environment:
|
||||||
- APP_SERVICES_ENABLED
|
- APP_SERVICES_ENABLED
|
||||||
- APP_SERVICE_CONFIGS
|
- APP_SERVICE_CONFIGS
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
version: "3.8"
|
version: "3.8"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
synapse:
|
||||||
secrets:
|
secrets:
|
||||||
- db_password
|
- db_password
|
||||||
- form_secret
|
- form_secret
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
version: "3.8"
|
version: "3.8"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
synapse:
|
||||||
secrets:
|
secrets:
|
||||||
- keycloak2_client_secret
|
- keycloak2_client_secret
|
||||||
environment:
|
environment:
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
version: "3.8"
|
version: "3.8"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
synapse:
|
||||||
secrets:
|
secrets:
|
||||||
- keycloak3_client_secret
|
- keycloak3_client_secret
|
||||||
environment:
|
environment:
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
version: "3.8"
|
version: "3.8"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
synapse:
|
||||||
environment:
|
environment:
|
||||||
- SHARED_SECRET_AUTH_ENABLED
|
- SHARED_SECRET_AUTH_ENABLED
|
||||||
secrets:
|
secrets:
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
version: "3.8"
|
version: "3.8"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
synapse:
|
||||||
environment:
|
environment:
|
||||||
- APP_SERVICES_ENABLED
|
- APP_SERVICES_ENABLED
|
||||||
- APP_SERVICE_CONFIGS
|
- APP_SERVICE_CONFIGS
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
version: "3.8"
|
version: "3.8"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
synapse:
|
||||||
secrets:
|
secrets:
|
||||||
- db_password
|
- db_password
|
||||||
- form_secret
|
- form_secret
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
version: "3.8"
|
version: "3.8"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
synapse:
|
||||||
environment:
|
environment:
|
||||||
- APP_SERVICES_ENABLED
|
- APP_SERVICES_ENABLED
|
||||||
- APP_SERVICE_CONFIGS
|
- APP_SERVICE_CONFIGS
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
version: "3.8"
|
version: "3.8"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
synapse:
|
||||||
secrets:
|
secrets:
|
||||||
- db_password
|
- db_password
|
||||||
- form_secret
|
- form_secret
|
||||||
|
20
compose.yml
20
compose.yml
@ -2,13 +2,12 @@
|
|||||||
version: "3.8"
|
version: "3.8"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
web:
|
app:
|
||||||
image: nginx:1.27.1
|
image: nginx:1.25.3
|
||||||
networks:
|
networks:
|
||||||
- proxy
|
- proxy
|
||||||
- internal
|
- internal
|
||||||
environment:
|
environment:
|
||||||
- DOMAIN
|
|
||||||
- STACK_NAME
|
- STACK_NAME
|
||||||
- NGINX_ACCESS_LOG_LOCATION
|
- NGINX_ACCESS_LOG_LOCATION
|
||||||
- NGINX_ERROR_LOG_LOCATION
|
- NGINX_ERROR_LOG_LOCATION
|
||||||
@ -28,14 +27,16 @@ services:
|
|||||||
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)"
|
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)"
|
||||||
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
||||||
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
||||||
|
- "coop-cloud.${STACK_NAME}.version=5.0.6+v1.100.0"
|
||||||
|
- "coop-cloud.${STACK_NAME}.timeout=${TIMEOUT:-120}"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: curl -f http://${STACK_NAME}_app:8008/health || exit 1
|
test: curl -f http://synapse:8008/health || exit 1
|
||||||
interval: 5s
|
interval: 5s
|
||||||
timeout: 3s
|
timeout: 3s
|
||||||
retries: 20
|
retries: 20
|
||||||
|
|
||||||
app:
|
synapse:
|
||||||
image: "matrixdotorg/synapse:v1.111.1"
|
image: "matrixdotorg/synapse:v1.100.0"
|
||||||
volumes:
|
volumes:
|
||||||
- "data:/data"
|
- "data:/data"
|
||||||
secrets:
|
secrets:
|
||||||
@ -75,7 +76,6 @@ services:
|
|||||||
- LOGIN_LIMIT_IP_BURST=${LOGIN_LIMIT_IP_BURST:-5}
|
- LOGIN_LIMIT_IP_BURST=${LOGIN_LIMIT_IP_BURST:-5}
|
||||||
- LOGIN_LIMIT_ACCOUNT_PER_SECOND=${LOGIN_LIMIT_ACCOUNT_PER_SECOND:-0.003}
|
- LOGIN_LIMIT_ACCOUNT_PER_SECOND=${LOGIN_LIMIT_ACCOUNT_PER_SECOND:-0.003}
|
||||||
- LOGIN_LIMIT_ACCOUNT_BURST=${LOGIN_LIMIT_ACCOUNT_BURST:-5}
|
- LOGIN_LIMIT_ACCOUNT_BURST=${LOGIN_LIMIT_ACCOUNT_BURST:-5}
|
||||||
- WEB_CLIENT_LOCATION
|
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
entrypoint: /docker-entrypoint.sh
|
entrypoint: /docker-entrypoint.sh
|
||||||
@ -87,12 +87,6 @@ services:
|
|||||||
- source: entrypoint_conf
|
- source: entrypoint_conf
|
||||||
target: /docker-entrypoint.sh
|
target: /docker-entrypoint.sh
|
||||||
mode: 0555
|
mode: 0555
|
||||||
deploy:
|
|
||||||
restart_policy:
|
|
||||||
condition: on-failure
|
|
||||||
labels:
|
|
||||||
- "coop-cloud.${STACK_NAME}.version=6.1.3+v1.111.1"
|
|
||||||
- "coop-cloud.${STACK_NAME}.timeout=${TIMEOUT:-120}"
|
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:8008/health"]
|
test: ["CMD", "curl", "-f", "http://localhost:8008/health"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
|
@ -23,7 +23,7 @@ serve_server_wellknown: {{ env "SERVE_SERVER_WELLKNOWN" }}
|
|||||||
allow_public_rooms_without_auth: false
|
allow_public_rooms_without_auth: false
|
||||||
|
|
||||||
# https://matrix-org.github.io/synapse/latest/usage/configuration/config_documentation.html#allow_public_rooms_over_federation
|
# https://matrix-org.github.io/synapse/latest/usage/configuration/config_documentation.html#allow_public_rooms_over_federation
|
||||||
allow_public_rooms_over_federation: {{ or (env "ALLOW_PUBLIC_ROOMS_FEDERATION") "true" }}
|
allow_public_rooms_over_federation: {{ env "ALLOW_PUBLIC_ROOMS_FEDERATION" }}
|
||||||
|
|
||||||
# https://matrix-org.github.io/synapse/latest/usage/configuration/config_documentation.html#listeners
|
# https://matrix-org.github.io/synapse/latest/usage/configuration/config_documentation.html#listeners
|
||||||
listeners:
|
listeners:
|
||||||
@ -276,6 +276,3 @@ rc_login:
|
|||||||
account:
|
account:
|
||||||
per_second: {{ env "LOGIN_LIMIT_ACCOUNT_PER_SECOND" }}
|
per_second: {{ env "LOGIN_LIMIT_ACCOUNT_PER_SECOND" }}
|
||||||
burst_count: {{ env "LOGIN_LIMIT_ACCOUNT_BURST" }}
|
burst_count: {{ env "LOGIN_LIMIT_ACCOUNT_BURST" }}
|
||||||
|
|
||||||
# https://matrix-org.github.io/synapse/latest/usage/configuration/config_documentation.html#web_client_location
|
|
||||||
web_client_location: {{ env "WEB_CLIENT_LOCATION" }}
|
|
||||||
|
@ -8,22 +8,13 @@ http {
|
|||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
|
|
||||||
access_log {{ or (env "NGINX_ACCESS_LOG_LOCATION") "/dev/null" }};
|
access_log {{ env "NGINX_ACCESS_LOG_LOCATION" }};
|
||||||
error_log {{ or (env "NGINX_ERROR_LOG_LOCATION") "/dev/null" }};
|
error_log {{ env "NGINX_ERROR_LOG_LOCATION" }};
|
||||||
|
|
||||||
server_name {{ env "DOMAIN" }};
|
server_name {{ env "DOMAIN" }};
|
||||||
|
|
||||||
location = / {
|
|
||||||
proxy_pass http://{{ env "STACK_NAME"}}_app:8008;
|
|
||||||
proxy_set_header X-Forwarded-For $remote_addr;
|
|
||||||
proxy_set_header X-Forwarded-Proto https;
|
|
||||||
proxy_set_header Host $host;
|
|
||||||
client_max_body_size 50M;
|
|
||||||
proxy_http_version 1.1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~* ^(\/_matrix|\/_synapse\/client) {
|
location ~* ^(\/_matrix|\/_synapse\/client) {
|
||||||
proxy_pass http://{{ env "STACK_NAME"}}_app:8008;
|
proxy_pass http://{{ env "STACK_NAME"}}_synapse:8008;
|
||||||
proxy_set_header X-Forwarded-For $remote_addr;
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
proxy_set_header X-Forwarded-Proto https;
|
proxy_set_header X-Forwarded-Proto https;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
|
@ -5,6 +5,4 @@ Copy the secrets:
|
|||||||
* `registration_shared_secret` to `registration`
|
* `registration_shared_secret` to `registration`
|
||||||
* `macaroon_secret_key` to `macaroon`
|
* `macaroon_secret_key` to `macaroon`
|
||||||
|
|
||||||
The easiest way to do this is to run `abra app run <matrix.example.com> app bash` BEFORE this upgrade, then `cat /run/secrets/registration_shared_secret`. If you haven't saved the secrets yet, and would like to, please Ctrl+C out of this upgrade and do that first.
|
|
||||||
|
|
||||||
Regeneration of these secrets should also work.
|
Regeneration of these secrets should also work.
|
||||||
|
@ -1 +1,17 @@
|
|||||||
It's recommended not to upgrade / downgrade directly to this version (or other 5.y.z versions), because of service renaming which was reverted in 6.0.0+v1.100.0.
|
An Nginx proxy has been configured as the entrypoint for Synapse. This is not
|
||||||
|
optional. This is done to counteract IP collection in Synapse itself. See more:
|
||||||
|
|
||||||
|
!!! You MUST undeploy your Synapse install before upgrading to this version !!!
|
||||||
|
|
||||||
|
This is because there have been a service rename in the recipe configuration:
|
||||||
|
|
||||||
|
* `app` -> `synapse`
|
||||||
|
|
||||||
|
This could break stuff in the recipe, so please report issues if you run into
|
||||||
|
anything!
|
||||||
|
|
||||||
|
https://git.coopcloud.tech/coop-cloud/matrix-synapse/issues/38
|
||||||
|
|
||||||
|
Thanks!
|
||||||
|
|
||||||
|
-- d1
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
Logging is now disabled by default. If you want to reënable it, set these options:
|
take care when upgrading! You need to add two variables to your .env file:
|
||||||
|
use the following if you don't want any access logs (including users' IP addresses):
|
||||||
|
NGINX_ACCESS_LOG_LOCATION="/dev/null"
|
||||||
|
NGINX_ERROR_LOG_LOCATION="/dev/null"
|
||||||
|
|
||||||
```
|
use the following if you want logs:
|
||||||
NGINX_ACCESS_LOG_LOCATION="/dev/stdout"
|
NGINX_ACCESS_LOG_LOCATION="/dev/stdout"
|
||||||
NGINX_ERROR_LOG_LOCATION="/dev/stderr"
|
NGINX_ERROR_LOG_LOCATION="/dev/stderr"
|
||||||
```
|
|
||||||
|
8
release/5.0.4+v1.100.0
Normal file
8
release/5.0.4+v1.100.0
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
We had to rename some secrets: https://git.coopcloud.tech/coop-cloud/matrix-synapse/issues/35
|
||||||
|
|
||||||
|
Copy the secrets:
|
||||||
|
|
||||||
|
* `registration_shared_secret` to `registration`
|
||||||
|
* `macaroon_secret_key` to `macaroon`
|
||||||
|
|
||||||
|
Regeneration of these secrets should also work.
|
@ -1 +0,0 @@
|
|||||||
If you are upgrading from verison 5.y.z of this recipe, you will need to `undeploy` then `deploy`, because of a service rename which was reverted.
|
|
Reference in New Issue
Block a user