Skip to content

Commit eca10b7

Browse files
authored
Merge pull request #211 from signalwire/Devon/self-hosting
Self hosting setup
2 parents 271ca9b + 061a1ca commit eca10b7

11 files changed

Lines changed: 122 additions & 10 deletions

File tree

Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM fernenterprise/fern-self-hosted:0.112.5
2+
3+
# Copy project files
4+
COPY package.json yarn.lock ./
5+
COPY fern/ /fern/
6+
COPY specs/ /specs/
7+
8+
# Install yarn and dependencies
9+
RUN npm install -g yarn
10+
RUN yarn install --frozen-lockfile
11+
12+
# Build all TypeSpec specs → OpenAPI YAML + SWML JSON Schema (outputs into /fern/apis/*)
13+
RUN yarn build:specs
14+
15+
# Generate docs
16+
RUN fern-generate

docker-compose.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
services:
2+
docs:
3+
build: .
4+
ports:
5+
- "3000:3000"
6+
environment:
7+
- WARMUP=true

fern/fern.config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"organization": "signalwire",
3-
"version": "4.22.0"
3+
"version": "4.29.0"
44
}

fern/products/apis/pages/core/overview.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ slug: /
66

77
Welcome to SignalWire's REST API. Our REST API is a set of endpoints that make interacting with SignalWire simple and familiar.
88

9-
The REST API is structured like most other [REST](http://en.wikipedia.org/wiki/Representational_State_Transfer) APIs: we use predictable and clear resource-oriented URLs that utilize built-in HTTP features like authentication, verbs, and error codes. This enables you to easily use any HTTP client in any language to make requests.
9+
The REST API is structured like most other [REST](https://en.wikipedia.org/wiki/REST) APIs: we use predictable and clear resource-oriented URLs that utilize built-in HTTP features like authentication, verbs, and error codes. This enables you to easily use any HTTP client in any language to make requests.
1010

11-
Proper HTTP status codes and [JSON](http://www.json.org/) are returned in all REST API endpoints, including errors.
11+
Proper HTTP status codes and [JSON](https://www.json.org/json-en.html) are returned in all REST API endpoints, including errors.
1212

1313
<CardGroup cols={3}>
1414
<Card title="Postman collection" icon="brands github" href="https://github.com/signalwire/rest-apis">

fern/products/compatibility-api/pages/cxml/guides/webhooks/common-webhook-errors.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ If you see a 502 Bad Gateway error, this may mean that SignalWire's internal ser
5555
1. Confirm that the URL that you used is not protected by any HTTP Authentication, making it impossible for SignalWire to reach it.
5656
2. Double check to make sure that your web server is up, responsive, and publicly accessible.
5757
3. Make sure your web server allows HTTP POST requests to static resources (if the URL refers to .xml or .html files)
58-
4. Check the ping times and packet loss between your web server and www.signalwire.com
58+
4. Check the ping times and packet loss between your web server and `https://www.signalwire.com`
5959

6060
## XML response body exceeds size limit (error code 11750)
6161

fern/products/platform/pages/platform/setup/api-credentials.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The API credentials found on this page are your key to accessing SignalWire's AP
1212
</Frame>
1313

1414
Most SignalWire API endpoints require authentication using
15-
[HTTP Basic Auth](http://en.wikipedia.org/wiki/Basic_access_authentication).
15+
[HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication).
1616
HTTP Basic Authentication requires you to send an Authorization header with your Project ID and API Token.
1717

1818
Each project has its own Project ID and API Authentication Tokens you will need to use when making a request to the API.

fern/products/swml/pages/get-started/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ sections:
7272
Accepts an array of [SWML methods](/docs/swml/reference).
7373
</ParamField>
7474
<ParamField path="*" type="object[]" optional>
75-
Additional user-defined sections, invoked from `main` using [program flow control methods](/docs/swml/guides/goto-execute-transfer-disambiguation-cache-test).
75+
Additional user-defined sections, invoked from `main` using [program flow control methods](/docs/swml/guides/goto-execute-transfer-disambiguation).
7676

7777
User-defined sections can use any text string as the property. Like `main`, user-defined sections accept an array of [SWML methods](/docs/swml/reference).
7878
</ParamField>

fern/products/swml/pages/guides/basics/goto-execute-transfer.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
id: 96578205-400a-41f1-9199-7500495236e4
33
title: Control program flow
44
subtitle: How are the methods goto, execute and transfer different?
5-
slug: /guides/goto-execute-transfer-disambiguation-cache-test
5+
slug: /guides/goto-execute-transfer-disambiguation
66
description: Learn how to use the goto, execute, and transfer methods in SWML.
77
---
88

File renamed without changes.

fern/products/swml/swml.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ navigation:
1919
- page: Variables
2020
path: ./pages/reference/variables.mdx
2121

22-
# - page: Schema
23-
# path: ./pages/reference/schema.mdx
22+
- page: Schema
23+
path: ./pages/reference/schema.mdx
2424
- folder: ./pages/reference/methods
2525
title-source: frontmatter
2626
title: Methods

0 commit comments

Comments
 (0)