use new s6-rc layout [skip ci]
This commit is contained in:
parent
92cb6aa224
commit
a4c316a485
@ -1,9 +0,0 @@
|
||||
root = true
|
||||
|
||||
[*]
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
indent_style = space
|
||||
indent_size = 4
|
@ -1,4 +1,4 @@
|
||||
FROM alpine:3.14 AS builder
|
||||
FROM alpine:3.15 AS builder
|
||||
|
||||
ENV VERSION=v1.52.0
|
||||
|
||||
|
2
rootfs/etc/cont-init.d/synapse-keys → rootfs/bin/synapse-keys
Normal file → Executable file
2
rootfs/etc/cont-init.d/synapse-keys → rootfs/bin/synapse-keys
Normal file → Executable file
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/with-contenv sh
|
||||
#!/bin/sh
|
||||
|
||||
if [ ! -f /var/lib/matrix-synapse/signing/signing.key ]; then
|
||||
s6-setuidgid matrix-synapse python3 -B -m synapse.app.homeserver -c /var/lib/matrix-synapse/server.yaml --generate-config -H $SERVER_NAME --report-stats=no
|
@ -0,0 +1,2 @@
|
||||
confd
|
||||
synapse-keys
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/with-contenv sh
|
||||
#!/bin/sh
|
||||
|
||||
cd /var/lib/matrix-synapse
|
||||
s6-setuidgid matrix-synapse python3 -B -m synapse.app.homeserver -c server.yaml
|
1
rootfs/etc/s6-overlay/s6-rc.d/matrix-synapse/type
Normal file
1
rootfs/etc/s6-overlay/s6-rc.d/matrix-synapse/type
Normal file
@ -0,0 +1 @@
|
||||
longrun
|
1
rootfs/etc/s6-overlay/s6-rc.d/synapse-keys/dependencies
Normal file
1
rootfs/etc/s6-overlay/s6-rc.d/synapse-keys/dependencies
Normal file
@ -0,0 +1 @@
|
||||
confd
|
1
rootfs/etc/s6-overlay/s6-rc.d/synapse-keys/type
Normal file
1
rootfs/etc/s6-overlay/s6-rc.d/synapse-keys/type
Normal file
@ -0,0 +1 @@
|
||||
oneshot
|
1
rootfs/etc/s6-overlay/s6-rc.d/synapse-keys/up
Normal file
1
rootfs/etc/s6-overlay/s6-rc.d/synapse-keys/up
Normal file
@ -0,0 +1 @@
|
||||
synapse-keys
|
@ -1,22 +0,0 @@
|
||||
from synapse.handlers.oidc import OidcMappingProvider
|
||||
|
||||
|
||||
class NextcloudOidcMappingProvider(OidcMappingProvider):
|
||||
def __init__(self, config):
|
||||
self._config = config
|
||||
|
||||
@staticmethod
|
||||
def parse_config(config):
|
||||
return {}
|
||||
|
||||
def get_remote_user_id(self, userinfo):
|
||||
return userinfo["ocs"]["data"]["id"]
|
||||
|
||||
async def map_user_attributes(self, userinfo, token):
|
||||
localpart = userinfo["ocs"]["data"]["id"]
|
||||
display_name = userinfo["ocs"]["data"]["display-name"]
|
||||
return {"localpart": localpart, "display_name": display_name}
|
||||
|
||||
async def get_extra_attributes(self, userinfo, token):
|
||||
extras = {}
|
||||
return extras
|
Loading…
Reference in New Issue
Block a user