by u/12D3KooWDV2A81Q3Nk1N4xogZDrPrBYY8UUpmv3pP53Ujq3GoemH | 10mo ago
i have this config in caddy:
```
plebbit.works {
encode zstd gzip
@websockets {
header Connection *Upgrade*
header Upgrade websocket
}
reverse_proxy @websockets localhost:9138 {
header_up -X*
}
@nows {
not header Upgrade websocket
path /
}
redir @nows /seedit/
reverse_proxy localhost:9138
}
```
i run plebbit-cli, so i use whatever seedit version it has
1 direct reply
by u/12D3KooWSxBYiMwZPPhyKj9FbzkuemoZHrFeU2TN6qoGp52Qh6Ss | 10mo ago
i simplified it further:
```
plebbit.works {
encode zstd gzip
@nows {
not header Upgrade websocket
path /
}
redir @nows /seedit/
reverse_proxy localhost:9138 {
header_up -X*
}
}
```