mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-24 02:39:21 -07:00
Updated Proxy examples (markdown)
@@ -721,4 +721,65 @@ This in turn will add the equivilent of below to your config (note this is an ex
|
|||||||
use_backend VaultWarden-Notifications_ipvANY if !ACL4
|
use_backend VaultWarden-Notifications_ipvANY if !ACL4
|
||||||
|
|
||||||
To test, if you navigate in a browser to /notifications/hub then you should get a page saying "WebSocket Protocol Error: Unable to parse WebSocket key.".. that means its working! - all other sub pages should get a Rocket error.
|
To test, if you navigate in a browser to /notifications/hub then you should get a page saying "WebSocket Protocol Error: Unable to parse WebSocket key.".. that means its working! - all other sub pages should get a Rocket error.
|
||||||
|
</details>
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>Istio k8s (by <a href="https://github.com/dpoke" target="_blank">@dpoke</a>)</summary><br/>
|
||||||
|
|
||||||
|
```gateway+vs
|
||||||
|
apiVersion: networking.istio.io/v1beta1
|
||||||
|
kind: Gateway
|
||||||
|
metadata:
|
||||||
|
name: vaultwarden-gateway
|
||||||
|
namespace: vaultwarden
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
istio: ingressgateway-internal # use Istio default gateway implementation
|
||||||
|
servers:
|
||||||
|
- hosts:
|
||||||
|
- vw.k8s.prod
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
|
name: http
|
||||||
|
protocol: HTTP
|
||||||
|
tls:
|
||||||
|
httpsRedirect: true
|
||||||
|
- hosts:
|
||||||
|
- vw.k8s.prod
|
||||||
|
port:
|
||||||
|
name: https-443
|
||||||
|
number: 443
|
||||||
|
protocol: HTTPS
|
||||||
|
tls:
|
||||||
|
mode: SIMPLE
|
||||||
|
credentialName: vw-k8s-prod-tls
|
||||||
|
---
|
||||||
|
apiVersion: networking.istio.io/v1beta1
|
||||||
|
kind: VirtualService
|
||||||
|
metadata:
|
||||||
|
name: vaultwarden-vs
|
||||||
|
namespace: vaultwarden
|
||||||
|
spec:
|
||||||
|
hosts:
|
||||||
|
- vw.k8s.prod
|
||||||
|
gateways:
|
||||||
|
- vaultwarden-gateway
|
||||||
|
http:
|
||||||
|
- match:
|
||||||
|
- uri:
|
||||||
|
exact: /notifications/hub
|
||||||
|
route:
|
||||||
|
- destination:
|
||||||
|
port:
|
||||||
|
number: 3012
|
||||||
|
host: vaultwarden-ws
|
||||||
|
- match:
|
||||||
|
- uri:
|
||||||
|
prefix: /
|
||||||
|
route:
|
||||||
|
- destination:
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
|
host: vaultwarden
|
||||||
|
```
|
||||||
</details>
|
</details>
|
||||||
Reference in New Issue
Block a user