Skip to content

Commit

Permalink
Check in log config, resolve YAML issues
Browse files Browse the repository at this point in the history
  • Loading branch information
encadyma committed May 1, 2020
1 parent 0a6da3f commit 9da37ab
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 19 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
*.pem
ocf-kubernetes-deploy-secret-*.erb
# Kubernetes deployment secrets
kubernetes/ocf-kubernetes-deploy-secret-*.erb
secret.yaml
2 changes: 1 addition & 1 deletion kubernetes/bridge.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ spec:
apiVersion: apps/v1
kind: Deployment
metadata:
name: matrix-bridge-deployment
name: matrix-bridge
labels:
app: matrix-bridge
spec:
Expand Down
20 changes: 6 additions & 14 deletions kubernetes/secrets/synapse-config/homeserver.yaml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,15 @@ listeners:
admin_contact: 'mailto:[email protected]'

acme:
enabled: false
port: 80
bind_addresses: ['::', '0.0.0.0']
reprovision_threshold: 30
# FIXME: is this acme section necessary?
domain: matrix.example.com
account_key_file: /etc/matrix-shared/acme_account.key
enabled: false

# TODO: Change to Postgres
database:
name: "sqlite3"
args:
database: "/data/homeserver.db"

log_config: "/data/matrix.ocf.berkeley.edu.log.config"
log_config: "/etc/matrix-synapse/synapse.log.config"

media_store_path: "/data/media_store"
enable_registration: false
Expand All @@ -49,15 +43,13 @@ enable_metrics: true
report_stats: false

app_service_config_files:
- /etc/matrix-bridge/appservice-registration-irc.yaml
- /etc/matrix-bridge/appservice-registration-irc.yaml

macaroon_secret_key: "<%= macaroon_secret_key %>"

form_secret: "<%= form_secret %>"

signing_key_path: "/etc/matrix-shared/matrix.ocf.berkeley.edu.signing.key"
old_signing_keys:
# TODO: populate this section with the old key

trusted_key_servers:
- server_name: "matrix.org"
Expand All @@ -72,9 +64,9 @@ password_config:
enabled: false

stats:
enabled: true
bucket_size: 1d
retention: 1y
enabled: true
bucket_size: 1d
retention: 1y

alias_creation_rules:
- user_id: "*"
Expand Down
28 changes: 28 additions & 0 deletions kubernetes/secrets/synapse-config/synapse.log.config.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: 1

formatters:
precise:
format: '%(asctime)s - %(name)s - %(lineno)d - %(levelname)s - %(request)s - %(message)s'

filters:
context:
(): synapse.logging.context.LoggingContextFilter
request: ""

handlers:
console:
class: logging.StreamHandler
formatter: precise
filters: [context]

loggers:
synapse.storage.SQL:
# beware: increasing this to DEBUG will make synapse log sensitive
# information such as access tokens.
level: INFO

root:
level: INFO
handlers: [console]

disable_existing_loggers: false
3 changes: 1 addition & 2 deletions kubernetes/synapse.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ spec:
apiVersion: apps/v1
kind: Deployment
metadata:
name: matrix-deployment
name: matrix-synapse
labels:
app: matrix
spec:
Expand All @@ -28,7 +28,6 @@ spec:
spec:
containers:
- name: matrix-synapse
# TODO: replace with versions
image: "docker.ocf.berkeley.edu/synapse:<%= version %>"
ports:
- containerPort: 8008
Expand Down

0 comments on commit 9da37ab

Please sign in to comment.