Compare commits
11 Commits
2cbc5cd1cc
...
potential
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7a9f003cbc | ||
|
|
080c0a0e6a | ||
|
|
c6427f2d86 | ||
|
|
5c068f7e05 | ||
|
|
eae737ef06 | ||
| a48dd0e56c | |||
| ef78c3fe78 | |||
| 2be37a3762 | |||
| 6b6f129bf1 | |||
| 98cadb294d | |||
| 271d3ca5f1 |
@@ -17,6 +17,15 @@ ansible-playbook deploy_matrix.yml -i inventory/hosts.yml
|
|||||||
## Matrix Administration ##
|
## Matrix Administration ##
|
||||||
[synapse-admin on github](https://github.com/Awesome-Technologies/synapse-admin)
|
[synapse-admin on github](https://github.com/Awesome-Technologies/synapse-admin)
|
||||||
|
|
||||||
|
- generate new certificate
|
||||||
|
```
|
||||||
|
podman run -it --rm \
|
||||||
|
-v ~/synapse-data:/data:Z \
|
||||||
|
-e SYNAPSE_SERVER_NAME=matrix.fpov.space \
|
||||||
|
-e SYNAPSE_REPORT_STATS=no \
|
||||||
|
matrixdotorg/synapse:latest generate
|
||||||
|
```
|
||||||
|
|
||||||
- Create User
|
- Create User
|
||||||
```
|
```
|
||||||
sudo podman exec -it synapse register_new_matrix_user -c /data/homeserver.yaml http://localhost:8008
|
sudo podman exec -it synapse register_new_matrix_user -c /data/homeserver.yaml http://localhost:8008
|
||||||
|
|||||||
@@ -39,10 +39,11 @@
|
|||||||
- "{{ vol_db }}"
|
- "{{ vol_db }}"
|
||||||
- "{{ npm_data }}"
|
- "{{ npm_data }}"
|
||||||
- "{{ npm_letsencrypt }}"
|
- "{{ npm_letsencrypt }}"
|
||||||
- "{{ lemonldap_data }}"
|
- "{{ keycloak_data }}"
|
||||||
|
- "{{ vol_kc_db }}"
|
||||||
|
|
||||||
# -----------------------------------------------------------------
|
# -----------------------------------------------------------------
|
||||||
# Pull required images (including Teamspeak)
|
# Pull required images
|
||||||
# -----------------------------------------------------------------
|
# -----------------------------------------------------------------
|
||||||
|
|
||||||
- name: Pull coturn image
|
- name: Pull coturn image
|
||||||
@@ -186,7 +187,7 @@
|
|||||||
ports:
|
ports:
|
||||||
- "{{ synapse_http_port }}:{{ synapse_http_port }}"
|
- "{{ synapse_http_port }}:{{ synapse_http_port }}"
|
||||||
volumes:
|
volumes:
|
||||||
- "{{ vol_synapse }}:/data"
|
- "{{ vol_synapse }}:/data:Z"
|
||||||
- "{{ vol_media }}:/data/media_store:Z"
|
- "{{ vol_media }}:/data/media_store:Z"
|
||||||
- "{{ synapse_cfg_path }}:/data/homeserver.yaml:Z"
|
- "{{ synapse_cfg_path }}:/data/homeserver.yaml:Z"
|
||||||
- "{{ synapse_secret_key_path }}:/data/matrix.fpov.space.signing.key:Z"
|
- "{{ synapse_secret_key_path }}:/data/matrix.fpov.space.signing.key:Z"
|
||||||
@@ -244,4 +245,42 @@
|
|||||||
network: "{{ podman_network }}"
|
network: "{{ podman_network }}"
|
||||||
restart_policy: always
|
restart_policy: always
|
||||||
|
|
||||||
|
# -----------------------------------------------------------------
|
||||||
|
# Start Keyclaok and supporting DB containers
|
||||||
|
# -----------------------------------------------------------------
|
||||||
|
|
||||||
|
- name: start Keyclaok Database container
|
||||||
|
containers.podman.podman_container:
|
||||||
|
name: keycloak-db
|
||||||
|
image: "{{ db_image }}"
|
||||||
|
state: started
|
||||||
|
env:
|
||||||
|
POSTGRES_USER: "{{ keycloak_postgres_user }}"
|
||||||
|
POSTGRES_PASSWORD: "{{ keycloak_postgres_pw }}"
|
||||||
|
POSTGRES_DB: "{{ keycloak_db }}"
|
||||||
|
volumes:
|
||||||
|
- "{{ vol_kc_db }}:/var/lib/postgresql/data"
|
||||||
|
network: "{{ podman_network }}"
|
||||||
|
restart_policy: always
|
||||||
|
|
||||||
|
- name: Start Keycloak authentication container
|
||||||
|
containers.podman.podman_container:
|
||||||
|
name: "{{ keycloak_container_name }}"
|
||||||
|
image: "{{ keycloak_image }}"
|
||||||
|
command: ["start-dev"]
|
||||||
|
env:
|
||||||
|
KC_DB: postgres
|
||||||
|
KC_DB_URL: jdbc:postgresql://keycloak-db/{{ keycloak_db }}
|
||||||
|
KC_DB_USERNAME: "{{ keycloak_postgres_user }}"
|
||||||
|
KC_DB_PASSWORD: "{{ keycloak_postgres_pw }}"
|
||||||
|
KC_HOSTNAME: "{{ keycloak_domain }}"
|
||||||
|
KC_HOSTNAME_PORT: "{{ kc_hn_port }}"
|
||||||
|
KEYCLOAK_ADMIN: "{{ keycloak_admin }}"
|
||||||
|
KC_BOOTSTRAP_ADMIN_PASSWORD: "{{ keycloak_pw }}"
|
||||||
|
KC_PROXY_HEADERS: xforwarded
|
||||||
|
KC_HTTP_ENABLED: "true"
|
||||||
|
KC_HOSTNAME_STRICT: "{{ 'false' }}"
|
||||||
|
volumes:
|
||||||
|
- "{{ keycloak_data }}:/opt/keycloak/data:Z"
|
||||||
|
network: "{{ podman_network }}"
|
||||||
|
restart_policy: always
|
||||||
|
|||||||
@@ -33,8 +33,7 @@ registration_requires_token: true
|
|||||||
|
|
||||||
federation_domain_whitelist: []
|
federation_domain_whitelist: []
|
||||||
auto_join_rooms:
|
auto_join_rooms:
|
||||||
- "#star-citizen:matrix.fpov.space"
|
- "#general:matrix.fpov.space"
|
||||||
- "#welcome:matrix.fpov.space"
|
|
||||||
|
|
||||||
max_upload_size: 200M
|
max_upload_size: 200M
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ turn_domain: "turn.fpov.space"
|
|||||||
matrix_email: "boxswappers@gmail.com"
|
matrix_email: "boxswappers@gmail.com"
|
||||||
admin_domain: "mtxadm.fpov.space"
|
admin_domain: "mtxadm.fpov.space"
|
||||||
element_domain: "element.fpov.space"
|
element_domain: "element.fpov.space"
|
||||||
|
keycloak_domain: "auth.fpov.space"
|
||||||
|
|
||||||
# --------------------------------------------------------------
|
# --------------------------------------------------------------
|
||||||
# Ports
|
# Ports
|
||||||
@@ -44,6 +45,10 @@ postgres_db: synapse
|
|||||||
postgres_user: mMwHLfdO6tz5N
|
postgres_user: mMwHLfdO6tz5N
|
||||||
postgres_pw: 9mKeSFE7tH2eY
|
postgres_pw: 9mKeSFE7tH2eY
|
||||||
|
|
||||||
|
keycloak_db: keycloak
|
||||||
|
keycloak_postgres_user: wCdfpLp3j208
|
||||||
|
keycloak_postgres_pw: F7C3arx1ZGHh
|
||||||
|
|
||||||
# --------------------------------------------------------------
|
# --------------------------------------------------------------
|
||||||
# Container images
|
# Container images
|
||||||
# --------------------------------------------------------------
|
# --------------------------------------------------------------
|
||||||
@@ -71,6 +76,9 @@ vol_teamspeak: teamspeak_data
|
|||||||
npm_data: npm_data
|
npm_data: npm_data
|
||||||
npm_letsencrypt: letsencrypt
|
npm_letsencrypt: letsencrypt
|
||||||
vol_db: postgres_db
|
vol_db: postgres_db
|
||||||
|
vol_kc_db: kc_postgres
|
||||||
|
keycloak_data: kc_data
|
||||||
|
|
||||||
|
|
||||||
# --------------------------------------------------------------
|
# --------------------------------------------------------------
|
||||||
# Paths on the target host (temporary files)
|
# Paths on the target host (temporary files)
|
||||||
@@ -80,7 +88,7 @@ dynamic_traefik_path: "/tmp/traefik_dynamic.yml"
|
|||||||
turn_conf_path: "/tmp/turnserver.conf"
|
turn_conf_path: "/tmp/turnserver.conf"
|
||||||
synapse_cfg_path: "/tmp/homeserver.yaml"
|
synapse_cfg_path: "/tmp/homeserver.yaml"
|
||||||
nginx_html_path: "/tmp/index.html"
|
nginx_html_path: "/tmp/index.html"
|
||||||
synapse_secret_key_path: "/tmp/matrix.fpov.space.signing.key"
|
synapse_secret_key_path: "/opt/matrix.fpov.space.signing.key"
|
||||||
synapse_log_config: "/tmp/matrix.fpov.space.log.config"
|
synapse_log_config: "/tmp/matrix.fpov.space.log.config"
|
||||||
element_config_path: "/tmp/config.json"
|
element_config_path: "/tmp/config.json"
|
||||||
|
|
||||||
@@ -117,3 +125,10 @@ landing_message: |
|
|||||||
automatic Let’s Encrypt certificates, a TURN server for voice/video, and a
|
automatic Let’s Encrypt certificates, a TURN server for voice/video, and a
|
||||||
simple landing page.
|
simple landing page.
|
||||||
|
|
||||||
|
# --------------------------------------------------------------
|
||||||
|
# Keycloak Auth
|
||||||
|
# --------------------------------------------------------------
|
||||||
|
kc_hn_port: "8080"
|
||||||
|
keycloak_admin: "mQ4vN06xWgIQ"
|
||||||
|
keycloak_pw: "I71bUBkhPY6E"
|
||||||
|
keycloak_container_name: "keycloak"
|
||||||
Reference in New Issue
Block a user