Synapse Dockerfile
This commit is contained in:
17
docker/synapse/homeserver.yaml → docker/synapse/config/homeserver.yaml
Normal file → Executable file
17
docker/synapse/homeserver.yaml → docker/synapse/config/homeserver.yaml
Normal file → Executable file
@@ -1,27 +1,26 @@
|
||||
server_name: "okupamicoche-synapse"
|
||||
pid_file: /data/homeserver.pid
|
||||
public_baseurl: http://okupamicoche-synapse:8008/
|
||||
listeners:
|
||||
- port: 8008
|
||||
tls: false
|
||||
type: http
|
||||
x_forwarded: true
|
||||
|
||||
resources:
|
||||
- names: [ client, federation ]
|
||||
- names: [client, federation]
|
||||
compress: false
|
||||
database:
|
||||
name: sqlite3
|
||||
args:
|
||||
database: /data/homeserver.db
|
||||
enable_registration: true
|
||||
log_config: "/data/okupamicoche-synapse.log.config"
|
||||
log_config: "/config/localhost.log.config"
|
||||
media_store_path: "/data/media_store"
|
||||
registration_shared_secret: "Y_XNuno*Dh,T2IpHA;i,bWF^fg&x.*t=iEz*@:y5REBMhgCA63"
|
||||
report_stats: false
|
||||
signing_key_path: "/config/localhost.signing.key"
|
||||
macaroon_secret_key: "6VvBQj_TedGcDDB_z,-qXV1W3:.CXrRG6AWF&4p:~iGNguy&_h"
|
||||
form_secret: "FM,2TSq++sZ@Tl0atcQP"
|
||||
signing_key_path: "/data/okupamicoche-synapse.signing.key"
|
||||
trusted_key_servers:
|
||||
- server_name: "matrix.org"
|
||||
report_stats: false
|
||||
suppress_key_server_warning: true
|
||||
enable_registration: true
|
||||
app_service_config_files:
|
||||
- /okupamicoche-appservice.yaml
|
||||
- /config/okupamicoche-appservice.yaml
|
||||
33
docker/synapse/config/localhost.log.config
Executable file
33
docker/synapse/config/localhost.log.config
Executable file
@@ -0,0 +1,33 @@
|
||||
|
||||
version: 1
|
||||
|
||||
formatters:
|
||||
precise:
|
||||
format: '%(asctime)s - %(name)s - %(lineno)d - %(levelname)s - %(request)s - %(message)s'
|
||||
|
||||
filters:
|
||||
context:
|
||||
(): synapse.util.logcontext.LoggingContextFilter
|
||||
request: ""
|
||||
|
||||
handlers:
|
||||
console:
|
||||
class: logging.StreamHandler
|
||||
formatter: precise
|
||||
filters: [context]
|
||||
|
||||
loggers:
|
||||
synapse:
|
||||
level: WARNING
|
||||
|
||||
synapse.storage.SQL:
|
||||
# beware: increasing this to DEBUG will make synapse log sensitive
|
||||
# information such as access tokens.
|
||||
level: WARNING
|
||||
|
||||
rest_auth_provider:
|
||||
level: INFO
|
||||
|
||||
root:
|
||||
level: WARNING
|
||||
handlers: [console]
|
||||
1
docker/synapse/config/localhost.signing.key
Executable file
1
docker/synapse/config/localhost.signing.key
Executable file
@@ -0,0 +1 @@
|
||||
ed25519 a_EgjW U0b5hmg9zXoLxAZFVDLTvtggKw+vkZQepCgjL8ZYRfI
|
||||
19
docker/synapse/docker-compose.yml
Normal file
19
docker/synapse/docker-compose.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
version: "3.3"
|
||||
|
||||
services:
|
||||
synapse:
|
||||
image: "matrixdotorg/synapse:latest"
|
||||
container_name: "okupamicoche-synapse"
|
||||
volumes:
|
||||
- "./data:/data"
|
||||
- "./config:/config"
|
||||
environment:
|
||||
VIRTUAL_HOST: "localhost"
|
||||
VIRTUAL_PORT: 8008
|
||||
SYNAPSE_SERVER_NAME: "okupamicoche-synapse"
|
||||
SYNAPSE_REPORT_STATS: "no"
|
||||
SYNAPSE_CONFIG_DIR: "/config"
|
||||
GUI: 1000
|
||||
UID: 1000
|
||||
ports:
|
||||
- "8008:8008"
|
||||
Reference in New Issue
Block a user