feat: vaultwarden template

This commit is contained in:
sashagoncharov19
2024-10-27 20:22:29 +00:00
parent 2a5a67e63c
commit 527c01e7dc
3 changed files with 58 additions and 2 deletions

View File

@@ -218,7 +218,6 @@ export const templates: TemplateData[] = [
version: "v1.5.6",
description:
"Documenso is the open source alternative to DocuSign for signing documents digitally",
links: {
github: "https://github.com/documenso/documenso",
website: "https://documenso.com/",
@@ -593,7 +592,7 @@ export const templates: TemplateData[] = [
version: "0.4.1",
description:
"Docmost, an open-source collaborative wiki and documentation software.",
logo: "",
logo: "docmost.png",
links: {
github: "https://github.com/docmost/docmost",
website: "https://docmost.com/",
@@ -602,4 +601,19 @@ export const templates: TemplateData[] = [
tags: ["self-hosted", "open-source", "manager"],
load: () => import("./docmost/index").then((m) => m.generate),
},
{
id: "vaultwarden",
name: "Vaultwarden",
version: "1.32.3",
description:
"Unofficial Bitwarden compatible server written in Rust, formerly known as bitwarden_rs",
logo: "vaultwarden.png",
links: {
github: "https://github.com/dani-garcia/vaultwarden",
website: "",
docs: "https://github.com/dani-garcia/vaultwarden/wiki",
},
tags: ["open-source"],
load: () => import("./vaultwarden/index").then((m) => m.generate),
},
];

View File

@@ -0,0 +1,14 @@
services:
vaultwarden:
image: vaultwarden/server:1.32.3
restart: always
environment:
DOMAIN: ${DOMAIN}
SIGNUPS_ALLOWED: ${SIGNUPS_ALLOWED}
volumes:
- vaultwarden:/data
ports:
- 11001:80
volumes:
vaultwarden:

View File

@@ -0,0 +1,28 @@
import {
type DomainSchema,
type Schema,
type Template,
generateRandomDomain,
} from "../utils";
export function generate(schema: Schema): Template {
const domains: DomainSchema[] = [
{
host: generateRandomDomain(schema),
port: 80,
serviceName: "vaultwarden",
},
];
const envs = [
"# Deactivate this with 'false' after you have created your account so that no strangers can register",
"SIGNUPS_ALLOWED=true",
"# required when using a reverse proxy; your domain; vaultwarden needs to know it's https to work properly with attachments",
"DOMAIN=https://vaultwarden.example.com",
];
return {
domains,
envs,
};
}