mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-25 11:19:21 -07:00
lighttpd configuration improvements from firsthand experience
@@ -118,9 +118,12 @@ If you prefer, you can also directly specify a value instead of substituting an
|
|||||||
In this example Vaultwarden will be available via https://shared.example.tld/vault/<br/>
|
In this example Vaultwarden will be available via https://shared.example.tld/vault/<br/>
|
||||||
If you want to use any other sub-path, like `vaultwarden` or `secret-vault` you should change `vault` in the example below to match.<br/>
|
If you want to use any other sub-path, like `vaultwarden` or `secret-vault` you should change `vault` in the example below to match.<br/>
|
||||||
|
|
||||||
|
You will also need to include the sub-path in the DOMAIN env var value for proxying to work successfully (e.g. DOMAIN: "https://shared.example.tld/vault")
|
||||||
|
|
||||||
```lighttpd
|
```lighttpd
|
||||||
server.modules += (
|
server.modules += (
|
||||||
"mod_openssl"
|
"mod_openssl",
|
||||||
|
"mod_redirect"
|
||||||
)
|
)
|
||||||
|
|
||||||
$SERVER["socket"] == ":443" {
|
$SERVER["socket"] == ":443" {
|
||||||
@@ -133,7 +136,7 @@ $SERVER["socket"] == ":443" {
|
|||||||
$SERVER["socket"] == ":80" {
|
$SERVER["socket"] == ":80" {
|
||||||
$HTTP["host"] =~ "vaultwarden.example.tld" {
|
$HTTP["host"] =~ "vaultwarden.example.tld" {
|
||||||
url.redirect = ( "^/(.*)" => "https://shared.example.tld/$1" )
|
url.redirect = ( "^/(.*)" => "https://shared.example.tld/$1" )
|
||||||
server.name = "shared.example.tld"
|
server.name = "shared.example.tld"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user