mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-25 11:19:21 -07:00
Update caddy and apache2 examples for websockets over port 80 (v1.29.0)
@@ -66,10 +66,7 @@ If you prefer, you can also directly specify a value instead of substituting an
|
|||||||
# Uncomment to allow access to the admin interface only from local networks
|
# Uncomment to allow access to the admin interface only from local networks
|
||||||
# import admin_redir
|
# import admin_redir
|
||||||
|
|
||||||
# Notifications redirected to the websockets server
|
# Proxy everything to Rocket
|
||||||
reverse_proxy /notifications/hub <SERVER>:3012
|
|
||||||
|
|
||||||
# Proxy everything else to Rocket
|
|
||||||
# if located at a sub-path the reverse_proxy line will look like:
|
# if located at a sub-path the reverse_proxy line will look like:
|
||||||
# reverse_proxy /subpath/* <SERVER>:80
|
# reverse_proxy /subpath/* <SERVER>:80
|
||||||
reverse_proxy <SERVER>:80 {
|
reverse_proxy <SERVER>:80 {
|
||||||
@@ -576,10 +573,7 @@ Remember to enable `mod_proxy_wstunnel` and `mod_proxy_http`, for example with:
|
|||||||
ErrorLog \${APACHE_LOG_DIR}/bitwarden-error.log
|
ErrorLog \${APACHE_LOG_DIR}/bitwarden-error.log
|
||||||
CustomLog \${APACHE_LOG_DIR}/bitwarden-access.log combined
|
CustomLog \${APACHE_LOG_DIR}/bitwarden-access.log combined
|
||||||
|
|
||||||
RewriteEngine On
|
ProxyPass / http://<SERVER>:80/ upgrade=websocket
|
||||||
RewriteCond %{HTTP:Upgrade} =websocket [NC]
|
|
||||||
RewriteRule /notifications/hub(.*) ws://<SERVER>:3012/$1 [P,L]
|
|
||||||
ProxyPass / http://<SERVER>:80/
|
|
||||||
|
|
||||||
ProxyPreserveHost On
|
ProxyPreserveHost On
|
||||||
ProxyRequests Off
|
ProxyRequests Off
|
||||||
|
|||||||
Reference in New Issue
Block a user