Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/docs/content/docs/(guide)/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ Clowder is a self-hosted PaaS (Platform as a Service) inspired by [Railway](http

I wasn't happy with any self-hosted PaaS. I wanted a simple UI that I can count on (Railway was on point). I found Uncloud but it didn't have a webui from where I could manage it, so I built Clowder, which uses a canvas, like Railway.

"Why not just use Railway?" It can get way too expensive. For example my setup would cost over $500/mo to run on Railway but I only pay ~$40 to [BelgiumVM](https://belgiumvm.be) and also get much better performance, security and control.
"Why not just use Railway?" It can get very expensive. For example my setup would cost way over $500/mo to run on Railway but I only pay ~$40 to [BelgiumVM](https://irazz.click/belgiumvm) and also get much better performance, security and control.

## Human written

These docs are fully written by [me](https://github.com/iRazvan2745). If you find any mistakes please make an [issue](https://github.com/clowder-run/clowder/issues)
These docs are fully written by [me](https://github.com/iRazvan2745). If you find any mistakes please make an [issue](https://github.com/clowder-run/clowder/issues).

## What's next?

Expand Down
270 changes: 270 additions & 0 deletions apps/docs/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -6665,6 +6665,276 @@
}
}
},
"/notifications/list": {
"post": {
"operationId": "notifications.list",
"responses": {
"200": {
"description": "OK",
"content": {}
}
}
}
},
"/notifications/create": {
"post": {
"operationId": "notifications.create",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"events": {
"type": "array",
"items": {
"enum": [
"deployment.succeeded",
"deployment.failed"
],
"type": "string"
},
"minItems": 1,
"maxItems": 2
},
"config": {
"oneOf": [
{
"type": "object",
"properties": {
"type": {
"const": "discord"
},
"webhookUrl": {
"type": "string",
"minLength": 1,
"maxLength": 2048,
"pattern": "^https:\\/\\/(?:(?:canary|ptb)\\.)?discord(?:app)?\\.com\\/api\\/webhooks\\/\\d+\\/[\\w-]+(?:\\?[^\\s#]*)?$"
}
},
"required": [
"type",
"webhookUrl"
]
},
{
"type": "object",
"properties": {
"type": {
"const": "telegram"
},
"botToken": {
"type": "string",
"minLength": 1,
"maxLength": 256,
"pattern": "^\\d+:[\\w-]+$"
},
"chatId": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^(?:-?\\d+|@\\w{5,})$"
}
},
"required": [
"type",
"botToken",
"chatId"
]
},
{
"type": "object",
"properties": {
"type": {
"const": "ntfy"
},
"serverUrl": {
"type": "string",
"minLength": 1,
"maxLength": 2048,
"format": "uri",
"pattern": "^https?:\\/\\/"
},
"topic": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^[\\w-]+$"
},
"token": {
"type": "string",
"minLength": 1,
"maxLength": 256
}
},
"required": [
"type",
"serverUrl",
"topic"
]
},
{
"type": "object",
"properties": {
"type": {
"const": "gchat"
},
"webhookUrl": {
"type": "string",
"minLength": 1,
"maxLength": 2048,
"pattern": "^https:\\/\\/chat\\.googleapis\\.com\\/v1\\/spaces\\/[^/\\s]+\\/messages\\?\\S+$"
}
},
"required": [
"type",
"webhookUrl"
]
},
{
"type": "object",
"properties": {
"type": {
"const": "webhook"
},
"url": {
"type": "string",
"minLength": 1,
"maxLength": 2048,
"format": "uri",
"pattern": "^https?:\\/\\/"
},
"secret": {
"type": "string",
"minLength": 1,
"maxLength": 256
}
},
"required": [
"type",
"url"
]
}
]
}
},
"required": [
"name",
"events",
"config"
]
}
}
}
},
"responses": {
"200": {
"description": "OK",
"content": {}
}
}
}
},
"/notifications/setEnabled": {
"post": {
"operationId": "notifications.setEnabled",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"channelId": {
"type": "string",
"format": "uuid"
},
"enabled": {
"type": "boolean"
}
},
"required": [
"channelId",
"enabled"
]
}
}
}
},
"responses": {
"200": {
"description": "OK",
"content": {}
}
}
}
},
"/notifications/remove": {
"post": {
"operationId": "notifications.remove",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"channelId": {
"type": "string",
"format": "uuid"
}
},
"required": [
"channelId"
]
}
}
}
},
"responses": {
"200": {
"description": "OK",
"content": {}
}
}
}
},
"/notifications/test": {
"post": {
"operationId": "notifications.test",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"channelId": {
"type": "string",
"format": "uuid"
}
},
"required": [
"channelId"
]
}
}
}
},
"responses": {
"200": {
"description": "OK",
"content": {}
}
}
}
},
"/terminal/open": {
"post": {
"operationId": "terminal.open",
Expand Down
4 changes: 2 additions & 2 deletions apps/docs/src/components/docs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ export function Docs({
<Provider {...props}>
<DocsLayout {...docsOptions(repoStats)} sidebar={sidebarOptions} tree={data.tree}>
<DocsPage toc={toc}>
<div className="flex justify-between">
<div className="flex justify-between border-b">
<div>
<DocsTitle>{title}</DocsTitle>
<DocsDescription>{description}</DocsDescription>
</div>
<div className="flex flex-row gap-2 items-center border-b -mt-4 pb-6">
<div className="flex flex-row gap-2 items-center -mt-4 pb-6">
<MarkdownCopyButton markdownUrl={markdownUrl} />
<ViewOptionsPopover markdownUrl={markdownUrl} githubUrl={githubUrl} />
</div>
Expand Down
Loading
Loading