Skip to content

Commit

Permalink
v0.3.6d patching default CORs config
Browse files Browse the repository at this point in the history
  • Loading branch information
KennethGrace committed Oct 21, 2023
1 parent 58d7d6c commit 8bd3601
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ _For API:_
docker run -d -p 49488:49488 --name netgpt-api \
-v /etc/ca-certificates/certs/api.crt:/app/certs/api.crt \
-v /etc/ca-certificates/certs/api.key:/app/certs/api.key \
-v /etc/ca-certificates/certs/root.crt:/etc/ssl/certs/root.crt \
kennethgrace/netgpt-api
```

Expand All @@ -64,7 +65,7 @@ If you plan to use KeyCloak authentication, you will need to provide the KeyCloa
Normally, you would run KeyCloak in production mode on a dedicated node, but for a quick setup, you can run KeyCloak in development mode locally. To run KeyCloak in development mode, use the following command:

```bash
docker run -d -p 8080:8443 -p 8443:8443 --name keycloak \
docker run -d -p 8080:8080 -p 8443:8443 --name keycloak \
-v /etc/ca-certificates/certs/auth.crt:/etc/x509/https/tls.crt \
-v /etc/ca-certificates/certs/auth.key:/etc/x509/https/tls.key \
-e KEYCLOAK_ADMIN=admin -e KEYCLOAK_ADMIN_PASSWORD=keycloak \
Expand Down
2 changes: 1 addition & 1 deletion api/config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This file is in YAML format. See http://yaml.org/ for more information.
server:
allowed_origins: # List of allowed origins for CORS requests. This should be the URL of the frontends.
- *
- "*" # Allow all origins. This is not recommended for production.
authentication:
provider: keycloak # Authentication provider to use. Currently only keycloak is supported.
server: https://localhost:8443 # URL of the authentication server
Expand Down
6 changes: 3 additions & 3 deletions api/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
fastapi>=0.102.0
fastapi==0.104.0
uvicorn>=0.23.1
openai==0.28.1
python-jose>=3.3.0
httpx>=0.24.1
icmplib>=3.0.3
icmplib==3.0.4
paramiko>=3.3.1
netmiko>=4.2.0
ncclient>=0.6.9
ncclient==0.6.15
napalm>=4.1.0

0 comments on commit 8bd3601

Please sign in to comment.