Skip to content

Commit bd60bc0

Browse files
committed
update self-host
1 parent 5afcec4 commit bd60bc0

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

blog/2023-02-14-selenium-integration/index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ add the following:
9999

100100
```bash
101101
DB_PASSWORD=changeme
102-
WM_BASE_URL=localhost
102+
WM_BASE_URL=http://localhost
103+
CADDY_REVERSE_PROXY=http://localhost
103104
```
104105

105106
This is the PostgreSQL database password used by Windmill and the base URL of
@@ -226,7 +227,7 @@ services:
226227
- "9920-9930:9920-9930" # <- added this; only 10 ports are opened; if you want to open more ports increase the 2nd number respectively
227228
environment:
228229
- DATABASE_URL=postgres://postgres:${DB_PASSWORD}@db/windmill?sslmode=disable
229-
- BASE_URL=http://${WM_BASE_URL}
230+
- BASE_URL=${WM_BASE_URL}
230231
- RUST_LOG=info
231232
- NUM_WORKERS=10 # <- an increased number of workers is helpful when running a lot of scraping scripts in parallel
232233
- TIMEOUT=99999999 # <- add this; This is important: Scraping websites usually outlasts normal scripts. To prevent a timeout we should increase this value.

docs/advanced/1_self_host/index.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,19 @@ address:
5252
```bash
5353
# .env
5454
DB_PASSWORD=supersecret
55-
WM_BASE_URL=windmill.example.com
55+
WM_BASE_URL=http://windmill.example.com
56+
CADDY_REVERSE_PROXY=http://windmill.example.com
5657
```
5758

58-
Setting the `WM_BASE_URL` configures Windmill to use it as its base url, but
59-
also configures Caddy to use it as the domain.
59+
Setting the `WM_BASE_URL` configures Windmill to use it as its base url. The reverse proxy is also configured at the same domain. You can use any reverse proxy as long as they behave mostly like the following caddy configuration:
60+
61+
```
62+
http://{$BASE_URL} {
63+
bind {$ADDRESS}
64+
reverse_proxy /ws/* http://lsp:3001
65+
reverse_proxy /* http://windmill_server:8000
66+
}
67+
```
6068

6169
### Deployment
6270

@@ -113,6 +121,7 @@ helm install windmill-chart windmill/windmill \
113121
--namespace=windmill \
114122
--create-namespace
115123
```
124+
116125
Detailed instructions in the official [repository][helm].
117126

118127
:::
@@ -124,10 +133,11 @@ additional features. One important feature is better caching for depencies in a
124133
super cache supported by S3.
125134

126135
You need:
136+
127137
- an Enterprise license key
128138
- an AWS account and S3 bucket
129139
- AWS credentials or IAM roles prepared for access from the Windmill worker pods.
130-
<br/>
140+
<br/>
131141

132142
See the [Helm Chart repository README][helm] [repository][helm] for more details. The exact setup
133143
for S3 access will vary according to your environment.
@@ -176,7 +186,6 @@ psql <DATABASE_URL> -f init-db-as-superuser.sql
176186
where `init-db-as-superuser.sql` is
177187
[this file](https://github.com/windmill-labs/windmill/blob/main/init-db-as-superuser.sql).
178188

179-
180189
Then finally, run the following commands:
181190

182191
```sql

0 commit comments

Comments
 (0)