fix: ensure correct Content-Type for well-known endpoint
This commit is contained in:
@@ -8,9 +8,18 @@ data:
|
|||||||
listen 8080;
|
listen 8080;
|
||||||
server_name _;
|
server_name _;
|
||||||
|
|
||||||
# Well-known endpoint for Bitwarden clients
|
# Well-known endpoint for Bitwarden clients (multiple variations)
|
||||||
location /.well-known/bitwarden/ {
|
location /.well-known/bitwarden/ {
|
||||||
add_header Content-Type application/json;
|
default_type application/json;
|
||||||
|
add_header Content-Type application/json always;
|
||||||
|
add_header Access-Control-Allow-Origin * always;
|
||||||
|
return 200 '{"object":"bitwarden-bitwarden-host","api":"https://vaultwarden.lotimmy.com"}';
|
||||||
|
}
|
||||||
|
|
||||||
|
location = /.well-known/bitwarden {
|
||||||
|
default_type application/json;
|
||||||
|
add_header Content-Type application/json always;
|
||||||
|
add_header Access-Control-Allow-Origin * always;
|
||||||
return 200 '{"object":"bitwarden-bitwarden-host","api":"https://vaultwarden.lotimmy.com"}';
|
return 200 '{"object":"bitwarden-bitwarden-host","api":"https://vaultwarden.lotimmy.com"}';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user