Última atividade 1705433070

synapse.yaml

Jarno Rankinen revisou este gist 1694716417. Ir para a revisão

1 file changed, 2 insertions

synapse.yaml

@@ -10,6 +10,8 @@ data:
10 10 ## Sliding Sync Proxy, will need a separate database created manually in the container.
11 11 ## podman exec -it matrix-db psql -U postgres_user -c 'CREATE DATABASE syncv3 WITH OWNER postgres_user'
12 12 ## Replace 'postgres_user', 'postgres_password' and 'syncv3' with the correct values
13 + ## Same applies for the bridges below
14 + ##
13 15 #SYNCV3_BINDADDR: "0.0.0.0:8118"
14 16 #SYNCV3_DB: "user=postgres_user dbname=syncv3 sslmode=disable host=127.0.0.1 password='postgres_password'"
15 17 #SYNCV3_SERVER: "https://example.com" ## Replace with the domain of the HS

Jarno Rankinen revisou este gist 1694716206. Ir para a revisão

1 file changed, 1 insertion, 1 deletion

synapse.yaml

@@ -8,7 +8,7 @@ data:
8 8 POSTGRES_PASSWORD: postgres_password
9 9 POSTGRES_INITDB_ARGS: --encoding=UTF-8 --lc-collate=C --lc-ctype=C
10 10 ## Sliding Sync Proxy, will need a separate database created manually in the container.
11 - ## podman exec -it matrix-db psql -U synapse -c 'CREATE DATABASE syncv3 WITH OWNER synapse'
11 + ## podman exec -it matrix-db psql -U postgres_user -c 'CREATE DATABASE syncv3 WITH OWNER postgres_user'
12 12 ## Replace 'postgres_user', 'postgres_password' and 'syncv3' with the correct values
13 13 #SYNCV3_BINDADDR: "0.0.0.0:8118"
14 14 #SYNCV3_DB: "user=postgres_user dbname=syncv3 sslmode=disable host=127.0.0.1 password='postgres_password'"

Jarno Rankinen revisou este gist 1694715964. Ir para a revisão

1 file changed, 22 insertions, 12 deletions

synapse.yaml

@@ -10,10 +10,10 @@ data:
10 10 ## Sliding Sync Proxy, will need a separate database created manually in the container.
11 11 ## podman exec -it matrix-db psql -U synapse -c 'CREATE DATABASE syncv3 WITH OWNER synapse'
12 12 ## Replace 'postgres_user', 'postgres_password' and 'syncv3' with the correct values
13 - SYNCV3_BINDADDR: "0.0.0.0:8118"
14 - SYNCV3_DB: "user=postgres_user dbname=syncv3 sslmode=disable host=127.0.0.1 password='postgres_password'"
15 - SYNCV3_SERVER: https://example.com"
16 - SYNCV3_SECRET: ## Generate secret with `openssl rand -hex 32` and paste here
13 + #SYNCV3_BINDADDR: "0.0.0.0:8118"
14 + #SYNCV3_DB: "user=postgres_user dbname=syncv3 sslmode=disable host=127.0.0.1 password='postgres_password'"
15 + #SYNCV3_SERVER: "https://example.com" ## Replace with the domain of the HS
16 + #SYNCV3_SECRET: ## Generate secret with `openssl rand -hex 32` and paste here
17 17
18 18 ---
19 19 apiVersion: v1
@@ -33,14 +33,18 @@ spec:
33 33 path: /path/to/matrix/synapse
34 34 type: Directory
35 35 name: data-matrix-synapse-host-0
36 +
37 + ## Bridges
36 38 #- hostPath:
37 39 # path: /path/to/matrix/mautrix-discord
38 40 # type: Directory
39 41 # name: data-matrix-mautrix-discord-host-0
42 +
40 43 #- hostPath:
41 44 # path: /path/to/matrix/mautrix-whatsapp
42 45 # type: Directory
43 46 # name: data-matrix-mautrix-whatsapp-host-0
47 +
44 48 #- hostPath:
45 49 # path: /path/to/matrix/mautrix-gmessages
46 50 # type: Directory
@@ -65,13 +69,6 @@ spec:
65 69 volumeMounts:
66 70 - mountPath: /data
67 71 name: data-matrix-synapse-host-0
68 - - image: ghcr.io/matrix-org/sliding-sync:latest
69 - name: syncv3
70 - envFrom:
71 - - configMapRef:
72 - name: matrix-config
73 - optional: false
74 - resources: {}
75 72 - image: docker.io/library/postgres:14-alpine
76 73 args:
77 74 - postgres
@@ -89,6 +86,17 @@ spec:
89 86 volumeMounts:
90 87 - mountPath: /var/lib/postgresql/data
91 88 name: matrix-psql-pvc
89 +
90 + ## Sliding sync, get synapse running first
91 + #- image: ghcr.io/matrix-org/sliding-sync:latest
92 + # name: syncv3
93 + # envFrom:
94 + # - configMapRef:
95 + # name: matrix-config
96 + # optional: false
97 + # resources: {}
98 +
99 + ## Bridges
92 100 #- image: dock.mau.dev/mautrix/discord:latest
93 101 # imagePullPolicy: never
94 102 # name: discord
@@ -101,6 +109,7 @@ spec:
101 109 # volumeMounts:
102 110 # - mountPath: /data
103 111 # name: data-matrix-mautrix-discord-host-0
112 +
104 113 #- image: dock.mau.dev/mautrix/whatsapp:latest
105 114 # name: whatsapp
106 115 # resources: {}
@@ -112,6 +121,7 @@ spec:
112 121 # volumeMounts:
113 122 # - mountPath: /data
114 123 # name: data-matrix-mautrix-whatsapp-host-0
124 +
115 125 #- image: dock.mau.dev/mautrix/gmessages:latest
116 126 # name: gmessages
117 127 # resources: {}
@@ -123,5 +133,5 @@ spec:
123 133 # volumeMounts:
124 134 # - mountPath: /data
125 135 # name: data-matrix-mautrix-gmessages-host-0
126 - #restartPolicy: On-failure
136 + restartPolicy: On-failure
127 137 status: {}

Jarno Rankinen revisou este gist 1694715669. Ir para a revisão

1 file changed, 1 insertion, 1 deletion

synapse.yaml

@@ -12,7 +12,7 @@ data:
12 12 ## Replace 'postgres_user', 'postgres_password' and 'syncv3' with the correct values
13 13 SYNCV3_BINDADDR: "0.0.0.0:8118"
14 14 SYNCV3_DB: "user=postgres_user dbname=syncv3 sslmode=disable host=127.0.0.1 password='postgres_password'"
15 - SYNCV3_SERVER: https://oranki.net"
15 + SYNCV3_SERVER: https://example.com"
16 16 SYNCV3_SECRET: ## Generate secret with `openssl rand -hex 32` and paste here
17 17
18 18 ---

Jarno Rankinen revisou este gist 1694715586. Ir para a revisão

1 file changed, 127 insertions

synapse.yaml(arquivo criado)

@@ -0,0 +1,127 @@
1 + apiVersion: v1
2 + kind: ConfigMap
3 + metadata:
4 + name: matrix-config
5 + data:
6 + POSTGRES_USER: postgres_user
7 + POSTGRES_DB: postgres_synapse_database
8 + POSTGRES_PASSWORD: postgres_password
9 + POSTGRES_INITDB_ARGS: --encoding=UTF-8 --lc-collate=C --lc-ctype=C
10 + ## Sliding Sync Proxy, will need a separate database created manually in the container.
11 + ## podman exec -it matrix-db psql -U synapse -c 'CREATE DATABASE syncv3 WITH OWNER synapse'
12 + ## Replace 'postgres_user', 'postgres_password' and 'syncv3' with the correct values
13 + SYNCV3_BINDADDR: "0.0.0.0:8118"
14 + SYNCV3_DB: "user=postgres_user dbname=syncv3 sslmode=disable host=127.0.0.1 password='postgres_password'"
15 + SYNCV3_SERVER: https://oranki.net"
16 + SYNCV3_SECRET: ## Generate secret with `openssl rand -hex 32` and paste here
17 +
18 + ---
19 + apiVersion: v1
20 + kind: Pod
21 + metadata:
22 + annotations:
23 + creationTimestamp: "2022-09-29T06:34:53Z"
24 + labels:
25 + app: matrix
26 + name: matrix
27 + spec:
28 + volumes:
29 + - name: matrix-psql-pvc
30 + persistentVolumeClaim:
31 + claimName: matrix-psql
32 + - hostPath:
33 + path: /path/to/matrix/synapse
34 + type: Directory
35 + name: data-matrix-synapse-host-0
36 + #- hostPath:
37 + # path: /path/to/matrix/mautrix-discord
38 + # type: Directory
39 + # name: data-matrix-mautrix-discord-host-0
40 + #- hostPath:
41 + # path: /path/to/matrix/mautrix-whatsapp
42 + # type: Directory
43 + # name: data-matrix-mautrix-whatsapp-host-0
44 + #- hostPath:
45 + # path: /path/to/matrix/mautrix-gmessages
46 + # type: Directory
47 + # name: data-matrix-mautrix-gmessages-host-0
48 +
49 + containers:
50 + - image: ghcr.io/matrix-org/synapse:latest
51 + name: synapse
52 + ports:
53 + - containerPort: 8008
54 + hostPort: 8008
55 + - containerPort: 8118
56 + hostPort: 8118
57 + - containerPort: 9000
58 + hostPort: 9001
59 + resources: {}
60 + securityContext:
61 + capabilities:
62 + drop:
63 + - CAP_MKNOD
64 + - CAP_AUDIT_WRITE
65 + volumeMounts:
66 + - mountPath: /data
67 + name: data-matrix-synapse-host-0
68 + - image: ghcr.io/matrix-org/sliding-sync:latest
69 + name: syncv3
70 + envFrom:
71 + - configMapRef:
72 + name: matrix-config
73 + optional: false
74 + resources: {}
75 + - image: docker.io/library/postgres:14-alpine
76 + args:
77 + - postgres
78 + envFrom:
79 + - configMapRef:
80 + name: matrix-config
81 + optional: false
82 + name: db
83 + resources: {}
84 + securityContext:
85 + capabilities:
86 + drop:
87 + - CAP_MKNOD
88 + - CAP_AUDIT_WRITE
89 + volumeMounts:
90 + - mountPath: /var/lib/postgresql/data
91 + name: matrix-psql-pvc
92 + #- image: dock.mau.dev/mautrix/discord:latest
93 + # imagePullPolicy: never
94 + # name: discord
95 + # resources: {}
96 + # securityContext:
97 + # capabilities:
98 + # drop:
99 + # - CAP_MKNOD
100 + # - CAP_AUDIT_WRITE
101 + # volumeMounts:
102 + # - mountPath: /data
103 + # name: data-matrix-mautrix-discord-host-0
104 + #- image: dock.mau.dev/mautrix/whatsapp:latest
105 + # name: whatsapp
106 + # resources: {}
107 + # securityContext:
108 + # capabilities:
109 + # drop:
110 + # - CAP_MKNOD
111 + # - CAP_AUDIT_WRITE
112 + # volumeMounts:
113 + # - mountPath: /data
114 + # name: data-matrix-mautrix-whatsapp-host-0
115 + #- image: dock.mau.dev/mautrix/gmessages:latest
116 + # name: gmessages
117 + # resources: {}
118 + # securityContext:
119 + # capabilities:
120 + # drop:
121 + # - CAP_MKNOD
122 + # - CAP_AUDIT_WRITE
123 + # volumeMounts:
124 + # - mountPath: /data
125 + # name: data-matrix-mautrix-gmessages-host-0
126 + #restartPolicy: On-failure
127 + status: {}
Próximo Anterior