remove Caddy, add documentation
This commit is contained in:
@@ -1,5 +1,31 @@
|
|||||||
# matrix-synapse-quadlets
|
# matrix-synapse-quadlets
|
||||||
|
|
||||||
add 'net.ipv4.ip_unprivileged_port_start=80' to /etc/sysctl.conf
|
## How to install (from [podman documentation](https://docs.podman.io/en/latest/markdown/podman-systemd.unit.5.html))
|
||||||
|
|
||||||
sysctl net.ipv4.ip_unprivileged_port_start=80
|
Podman rootful unit search path
|
||||||
|
|
||||||
|
Quadlet files for the root user can be placed in the following directories ordered in precedence. Meaning duplicate named quadlets found under /run take precedence over ones in /etc, as well as those in /usr:
|
||||||
|
|
||||||
|
Temporary quadlets, usually used for testing:
|
||||||
|
|
||||||
|
- /run/containers/systemd/
|
||||||
|
|
||||||
|
System administrator’s defined quadlets:
|
||||||
|
|
||||||
|
- /etc/containers/systemd/
|
||||||
|
|
||||||
|
Distribution defined quadlets:
|
||||||
|
|
||||||
|
- /usr/share/containers/systemd/
|
||||||
|
|
||||||
|
Podman rootless unit search path
|
||||||
|
|
||||||
|
Quadlet files for non-root users can be placed in the following directories:
|
||||||
|
|
||||||
|
- $XDG_RUNTIME_DIR/containers/systemd/
|
||||||
|
|
||||||
|
- $XDG_CONFIG_HOME/containers/systemd/ or ~/.config/containers/systemd/
|
||||||
|
|
||||||
|
- /etc/containers/systemd/users/$(UID)
|
||||||
|
|
||||||
|
- /etc/containers/systemd/users/
|
||||||
|
|||||||
@@ -32,18 +32,3 @@ data:
|
|||||||
signing_key_path: "/data/matrix.k0rb4k.net.signing.key"
|
signing_key_path: "/data/matrix.k0rb4k.net.signing.key"
|
||||||
trusted_key_servers:
|
trusted_key_servers:
|
||||||
- server_name: "matrix.org"
|
- server_name: "matrix.org"
|
||||||
# Caddyfile: |
|
|
||||||
|
|
||||||
# http://localhost {
|
|
||||||
# reverse_proxy /_matrix/* localhost:8008
|
|
||||||
# reverse_proxy /_synapse/client/* localhost:8008
|
|
||||||
# }
|
|
||||||
|
|
||||||
# http://matrix.k0rb4k.net {
|
|
||||||
# reverse_proxy /_matrix/* localhost:8008
|
|
||||||
# reverse_proxy /_synapse/client/* localhost:8008
|
|
||||||
# }
|
|
||||||
|
|
||||||
# http://k0rb4k.net:8448 {
|
|
||||||
# reverse_proxy /_matrix/* localhost:8008
|
|
||||||
# }
|
|
||||||
|
|||||||
+1
-2
@@ -7,8 +7,7 @@ Yaml=synapse.yml
|
|||||||
|
|
||||||
Network=synapse.network
|
Network=synapse.network
|
||||||
|
|
||||||
PublishPort=80:80
|
PublishPort=8008:8008
|
||||||
PublishPort=443:443
|
|
||||||
ConfigMap=synapse-configmap.yml
|
ConfigMap=synapse-configmap.yml
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|||||||
-25
@@ -40,19 +40,6 @@ spec:
|
|||||||
storage: 20Gi
|
storage: 20Gi
|
||||||
|
|
||||||
---
|
---
|
||||||
# apiVersion: v1
|
|
||||||
# kind: PersistentVolumeClaim
|
|
||||||
# metadata:
|
|
||||||
# name: caddy-data
|
|
||||||
# labels:
|
|
||||||
# app: synapse
|
|
||||||
# spec:
|
|
||||||
# accessModes:
|
|
||||||
# - ReadWriteOnce
|
|
||||||
# resources:
|
|
||||||
# requests:
|
|
||||||
# storage: 1Gi
|
|
||||||
# ---
|
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Pod
|
kind: Pod
|
||||||
metadata:
|
metadata:
|
||||||
@@ -96,15 +83,6 @@ spec:
|
|||||||
port: 8008
|
port: 8008
|
||||||
initialDelaySeconds: 15
|
initialDelaySeconds: 15
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
# - name: caddy
|
|
||||||
# image: docker.io/caddy:2-alpine
|
|
||||||
# volumeMounts:
|
|
||||||
# - name: caddy-data-pvc
|
|
||||||
# mountPath: /data
|
|
||||||
# - name: synapse-config
|
|
||||||
# mountPath: /etc/caddy/Caddyfile
|
|
||||||
# readOnly: true
|
|
||||||
# subPath: Caddyfile
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: synapse-config
|
- name: synapse-config
|
||||||
configMap:
|
configMap:
|
||||||
@@ -118,6 +96,3 @@ spec:
|
|||||||
- name: synapse-media-pvc
|
- name: synapse-media-pvc
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: synapse-media
|
claimName: synapse-media
|
||||||
# - name: caddy-data-pvc
|
|
||||||
# persistentVolumeClaim:
|
|
||||||
# claimName: caddy-data
|
|
||||||
|
|||||||
Reference in New Issue
Block a user