add caddy config snippets
This commit is contained in:
40
README.md
40
README.md
@@ -45,6 +45,46 @@ source .env
|
|||||||
docker exec -it matrix_app_1 register_new_matrix_user -u $USERNAME -p $USERPASS -a -c /data/homeserver.yaml $DOMAIN
|
docker exec -it matrix_app_1 register_new_matrix_user -u $USERNAME -p $USERPASS -a -c /data/homeserver.yaml $DOMAIN
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
### caddy config
|
||||||
|
#### synapse
|
||||||
|
```
|
||||||
|
synapse.example.com {
|
||||||
|
reverse_proxy /_matrix/* $IPOFDOCKERHOST:8008
|
||||||
|
reverse_proxy /_synapse/client/* $IPOFDOCKERHOST:8008
|
||||||
|
|
||||||
|
header {
|
||||||
|
X-Content-Type-Options nosniff
|
||||||
|
Referrer-Policy strict-origin-when-cross-origin
|
||||||
|
Strict-Transport-Security "max-age=63072000; includeSubDomains;"
|
||||||
|
Permissions-Policy "accelerometer=(), camera=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), payment=(), usb=(), interest-cohort=()"
|
||||||
|
X-Frame-Options SAMEORIGIN
|
||||||
|
X-XSS-Protection 1
|
||||||
|
X-Robots-Tag none
|
||||||
|
-server
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
#### element
|
||||||
|
```
|
||||||
|
element.example.com {
|
||||||
|
encode zstd gzip
|
||||||
|
reverse_proxy $IPOFDOCKERHOST:8080
|
||||||
|
|
||||||
|
header {
|
||||||
|
X-Content-Type-Options nosniff
|
||||||
|
Referrer-Policy strict-origin-when-cross-origin
|
||||||
|
Strict-Transport-Security "max-age=63072000; includeSubDomains;"
|
||||||
|
Permissions-Policy "accelerometer=(), camera=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), payment=(), usb=(), interest-cohort=()"
|
||||||
|
X-Frame-Options SAMEORIGIN
|
||||||
|
X-XSS-Protection 1
|
||||||
|
X-Robots-Tag none
|
||||||
|
-server
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## todo
|
## todo
|
||||||
- setup script to auto edits
|
- setup script to auto edits
|
||||||
- db in homeserver.yml
|
- db in homeserver.yml
|
||||||
|
|||||||
Reference in New Issue
Block a user