mirror of
https://github.com/fosrl/docs-v2.git
synced 2026-02-21 12:26:47 +00:00
Fix typo
This commit is contained in:
@@ -41,7 +41,7 @@ Then run the installer again:
|
|||||||
```
|
```
|
||||||
</Step>
|
</Step>
|
||||||
<Step title="Update the Pangolin config file">
|
<Step title="Update the Pangolin config file">
|
||||||
Update your Pangolin configuration to point to the new GeoIP database file. Edit your `config/config.json` file to include the following entry:
|
Update your Pangolin configuration to point to the new GeoIP database file. Edit your `config/config.yml` file to include the following entry:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
server:
|
server:
|
||||||
|
|||||||
@@ -14,25 +14,20 @@ flags:
|
|||||||
enable_integration_api: true
|
enable_integration_api: true
|
||||||
```
|
```
|
||||||
|
|
||||||
If you want to specify a port other than the default `3004`, you can do so in the config as well:
|
If you want to specify a port other than the default `3003`, you can do so in the config as well:
|
||||||
|
|
||||||
```yaml title="config.yml"
|
```yaml title="config.yml"
|
||||||
server:
|
server:
|
||||||
integration_port: 3004 # Specify different port
|
integration_port: 3003 # Specify different port
|
||||||
```
|
```
|
||||||
|
|
||||||
## Configure Traefik Routing
|
## Configure Traefik Routing
|
||||||
|
|
||||||
Add the following configuration to your `dynamic_config.yml` to expose the Integration API at `https://api.example.com/v1`:
|
Add the following configuration to your `config/traefik/dynamic_config.yml` to expose the Integration API at `https://api.example.com/v1`:
|
||||||
|
|
||||||
```yaml title="dynamic_config.yml"
|
```yaml title="dynamic_config.yml"
|
||||||
http:
|
|
||||||
middlewares:
|
|
||||||
redirect-to-https:
|
|
||||||
redirectScheme:
|
|
||||||
scheme: https
|
|
||||||
|
|
||||||
routers:
|
routers:
|
||||||
|
# Add the following two routers
|
||||||
int-api-router-redirect:
|
int-api-router-redirect:
|
||||||
rule: "Host(`api.example.com`)"
|
rule: "Host(`api.example.com`)"
|
||||||
service: int-api-service
|
service: int-api-service
|
||||||
@@ -50,10 +45,11 @@ http:
|
|||||||
certResolver: letsencrypt
|
certResolver: letsencrypt
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
# Add the following service
|
||||||
int-api-service:
|
int-api-service:
|
||||||
loadBalancer:
|
loadBalancer:
|
||||||
servers:
|
servers:
|
||||||
- url: "http://pangolin:3004"
|
- url: "http://pangolin:3003"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Access Documentation
|
## Access Documentation
|
||||||
|
|||||||
Reference in New Issue
Block a user