make syn+mas+EW work

This commit is contained in:
Matthew Hodgson
2024-11-05 00:13:02 +00:00
parent ce7b94a1ac
commit 2be8d772b4
5 changed files with 111 additions and 12 deletions

View File

@@ -11,17 +11,50 @@ into their ESS counterparts, and rehoming the postgres).
## To run
```
# pick a domain name:
DOMAIN=shadowfax.local
# grab a TLS certificate for the server:
brew install mkcert || apt-get install mkcert
mkcert -install
mkcert $DOMAIN '*.'$DOMAIN
mkdir -p data/nginx/ssl
mv ${DOMAIN}+1.pem data/nginx/ssl/cert.pem
mv ${DOMAIN}+1-key.pem data/nginx/ssl/key.pem
cp "$(mkcert -CAROOT)"/rootCA.pem data/nginx/ssl
# make an .env to configure your environment
cp .env-sample .env
# edit the .env to configure your environment
sed -ie s/example.com/$DOMAIN/ .env
docker compose up
```
![Screenshot 2024-11-04 at 03 05 28](https://github.com/user-attachments/assets/c3127f3c-ae0c-43cb-bfe9-88f4be56e0af)
## To admin
```
# To register a user
docker compose exec mas mas-cli -c /data/config.yaml manage register-user
```
```
# if you change the OIDC clients in MAS:
docker compose exec mas mas-cli -c /data/config.yaml config sync --prune
```
## Diagnostics
```
# check that OIDC is working - useful for debugging TLS problems
docker compose exec mas mas-cli -c /data/config.yaml doctor
````
## Todo
* [ ] sort out the networking
* [ ] make nginx do something useful when running on a local workstation
* [x] sort out the networking
* [x] make nginx do something useful when running on a local workstation
* [ ] hook up letsencrypt to nginx properly
* [ ] hook up livekit properly
* [ ] make it work