You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/en/home/local-deployment/configure/engine/page.mdx
+20-8Lines changed: 20 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,11 +80,13 @@ topic:
80
80
HTTP is the supported protocol for Arcade Engine's API. The following configuration options are available:
81
81
82
82
- `api.development` _(optional, default: `false`)_ - Enable development mode, with more logging and simple [worker authentication](/home/local-deployment/configure/engine#http-worker-configuration)
83
-
- `api.http.host` _(default: `localhost`)_ - Address to which Arcade Engine binds its server (e.g., `localhost` or `0.0.0.0`)
84
-
- `api.http.read_timeout` _(optional, default: `30s`)_ - Timeout for reading data from clients
85
-
- `api.http.write_timeout` _(optional, default: `1m`)_ - Timeout for writing data to clients
86
-
- `api.http.idle_timeout` _(optional, default: `30s`)_ - Timeout for idle connections
87
-
- `api.http.max_request_body_size` _(optional, default: `4Mb`)_ - Maximum request body size
83
+
- `api.host` _(default: `localhost`)_ - Address to which Arcade Engine binds its server (e.g., `localhost` or `0.0.0.0`)
84
+
- `api.port` _(default: `9099`)_ - Port to which Arcade Engine binds its server (e.g., `9099` or `8080`)
85
+
- `api.public_host`_(optional)_ - External hostname of the API (e.g., `my-public-host.com`), if it differs from `api.host` (for example, when Arcade Engine is behind a reverse proxy)
86
+
- `api.read_timeout` _(optional, default: `30s`)_ - Timeout for reading data from clients
87
+
- `api.write_timeout` _(optional, default: `1m`)_ - Timeout for writing data to clients
88
+
- `api.idle_timeout` _(optional, default: `30s`)_ - Timeout for idle connections
89
+
- `api.max_request_body_size` _(optional, default: `4Mb`)_ - Maximum request body size
88
90
89
91
A typical configuration for production looks like:
90
92
@@ -95,6 +97,16 @@ api:
95
97
port: 9099
96
98
```
97
99
100
+
When the Arcade Engine is hosted in a container or behind a reverse proxy, set `api.public_host` to the external hostname of the API:
101
+
102
+
```yaml
103
+
api:
104
+
development: false
105
+
host: localhost
106
+
port: 9099
107
+
public_host: my-public-host.com
108
+
```
109
+
98
110
For local development, set `api.development = true`. In development mode, Arcade Engine does not require [worker authentication](/home/local-deployment/configure/engine#http-worker-configuration).
99
111
100
112
## Auth configuration
@@ -144,8 +156,8 @@ Two cache implementations are available:
0 commit comments