mirror of
https://github.com/bitwarden/server.git
synced 2025-04-05 21:18:13 -05:00
remove assetlinks (#1553)
This commit is contained in:
parent
f534e813e7
commit
dbf82385c9
@ -1,35 +0,0 @@
|
|||||||
using System.IO;
|
|
||||||
|
|
||||||
namespace Bit.Setup
|
|
||||||
{
|
|
||||||
public class AssetLinksBuilder
|
|
||||||
{
|
|
||||||
private readonly Context _context;
|
|
||||||
|
|
||||||
public AssetLinksBuilder(Context context)
|
|
||||||
{
|
|
||||||
_context = context;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Build()
|
|
||||||
{
|
|
||||||
var model = new TemplateModel
|
|
||||||
{
|
|
||||||
Url = _context.Config.Url
|
|
||||||
};
|
|
||||||
|
|
||||||
Helpers.WriteLine(_context, "Building Asset Links For Fido2.");
|
|
||||||
Directory.CreateDirectory("/bitwarden/web/");
|
|
||||||
var template = Helpers.ReadTemplate("AssetLinks");
|
|
||||||
using (var sw = File.CreateText("/bitwarden/web/assetlinks.json"))
|
|
||||||
{
|
|
||||||
sw.Write(template(model));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public class TemplateModel
|
|
||||||
{
|
|
||||||
public string Url { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -106,9 +106,6 @@ namespace Bit.Setup
|
|||||||
var appIdBuilder = new AppIdBuilder(_context);
|
var appIdBuilder = new AppIdBuilder(_context);
|
||||||
appIdBuilder.Build();
|
appIdBuilder.Build();
|
||||||
|
|
||||||
var assetLinksBuilder = new AssetLinksBuilder(_context);
|
|
||||||
assetLinksBuilder.Build();
|
|
||||||
|
|
||||||
var dockerComposeBuilder = new DockerComposeBuilder(_context);
|
var dockerComposeBuilder = new DockerComposeBuilder(_context);
|
||||||
dockerComposeBuilder.BuildForInstaller();
|
dockerComposeBuilder.BuildForInstaller();
|
||||||
|
|
||||||
@ -301,9 +298,6 @@ namespace Bit.Setup
|
|||||||
var appIdBuilder = new AppIdBuilder(_context);
|
var appIdBuilder = new AppIdBuilder(_context);
|
||||||
appIdBuilder.Build();
|
appIdBuilder.Build();
|
||||||
|
|
||||||
var assetLinksBuilder = new AssetLinksBuilder(_context);
|
|
||||||
assetLinksBuilder.Build();
|
|
||||||
|
|
||||||
var dockerComposeBuilder = new DockerComposeBuilder(_context);
|
var dockerComposeBuilder = new DockerComposeBuilder(_context);
|
||||||
dockerComposeBuilder.BuildForUpdater();
|
dockerComposeBuilder.BuildForUpdater();
|
||||||
|
|
||||||
|
@ -8,8 +8,7 @@
|
|||||||
"ids": [
|
"ids": [
|
||||||
"{{{Url}}}",
|
"{{{Url}}}",
|
||||||
"ios:bundle-id:com.8bit.bitwarden",
|
"ios:bundle-id:com.8bit.bitwarden",
|
||||||
"android:apk-key-hash:dUGFzUzf3lmHSLBDBIv+WaFyZMI",
|
"android:apk-key-hash:dUGFzUzf3lmHSLBDBIv+WaFyZMI"
|
||||||
"android:apk-key-hash-sha256:FubAP/lVUILntSvHc1ZpYh7LwOoDai/lmePXNKyyzgM"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -1,26 +0,0 @@
|
|||||||
[
|
|
||||||
{
|
|
||||||
"relation":[
|
|
||||||
"delegate_permission/common.handle_all_urls",
|
|
||||||
"delegate_permission/common.get_login_creds"
|
|
||||||
],
|
|
||||||
"target":{
|
|
||||||
"namespace":"web",
|
|
||||||
"site":"{{{Url}}}"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"relation":[
|
|
||||||
"delegate_permission/common.handle_all_urls",
|
|
||||||
"delegate_permission/common.get_login_creds"
|
|
||||||
],
|
|
||||||
"target":{
|
|
||||||
"namespace":"android_app",
|
|
||||||
"package_name":"com.x8bit.bitwarden",
|
|
||||||
"sha256_cert_fingerprints":[
|
|
||||||
"24:E0:6C:04:C2:08:04:8F:19:F1:C9:93:B4:DD:A4:43:0E:A8:B0:6D:B8:37:5E:A0:E3:7B:83:46:96:B9:AC:3A",
|
|
||||||
"16:E6:C0:3F:F9:55:50:82:E7:B5:2B:C7:73:56:69:62:1E:CB:C0:EA:03:6A:2F:E5:99:E3:D7:34:AC:B2:CE:03"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
@ -84,16 +84,6 @@ server {
|
|||||||
add_header Content-Type $fido_content_type;
|
add_header Content-Type $fido_content_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
location = /.well-known/assetlinks.json {
|
|
||||||
proxy_pass http://web:5000/assetlinks.json;
|
|
||||||
{{#if Ssl}}
|
|
||||||
include /etc/nginx/security-headers-ssl.conf;
|
|
||||||
{{/if}}
|
|
||||||
include /etc/nginx/security-headers.conf;
|
|
||||||
proxy_hide_header Content-Type;
|
|
||||||
add_header Content-Type application/json;
|
|
||||||
}
|
|
||||||
|
|
||||||
location = /duo-connector.html {
|
location = /duo-connector.html {
|
||||||
proxy_pass http://web:5000/duo-connector.html;
|
proxy_pass http://web:5000/duo-connector.html;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user