use new s6-rc layout [skip ci]

This commit is contained in:
Sebastian Hugentobler 2022-02-16 08:50:40 +01:00
parent 92cb6aa224
commit a4c316a485
Signed by: shu
GPG Key ID: BB32CF3CA052C2F0
11 changed files with 9 additions and 34 deletions

View File

@ -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

View File

@ -1,4 +1,4 @@
FROM alpine:3.14 AS builder
FROM alpine:3.15 AS builder
ENV VERSION=v1.52.0

View 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

View File

@ -0,0 +1,2 @@
confd
synapse-keys

View File

@ -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

View File

@ -0,0 +1 @@
longrun

View File

@ -0,0 +1 @@
confd

View File

@ -0,0 +1 @@
oneshot

View File

@ -0,0 +1 @@
synapse-keys

View File

@ -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