-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add getServiceUrl * fixed proxy url for chat * fixed prettier * removed unused logic --------- Co-authored-by: Janaka-Steph <[email protected]>
- Loading branch information
1 parent
d90f7a2
commit 3f781b4
Showing
4 changed files
with
25 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
:8000 { | ||
handle_path /api/* { | ||
reverse_proxy premd:8000 | ||
} | ||
reverse_proxy prem_app:1420 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,22 +4,25 @@ services: | |
prem_app: | ||
container_name: prem_app | ||
build: . | ||
ports: | ||
- 1420:1420 | ||
environment: | ||
- VITE_DESTINATION=browser | ||
- VITE_IS_PACKAGED=true | ||
- VITE_BACKEND_URL=http://localhost:8000 | ||
|
||
premd: | ||
container_name: premd | ||
image: ghcr.io/premai-io/premd:latest | ||
ports: | ||
- 8000:8000 | ||
image: ghcr.io/premai-io/premd:v0.0.20 | ||
restart: on-failure | ||
volumes: | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
environment: | ||
- PREM_REGISTRY_URL=https://raw.githubusercontent.com/premAI-io/prem-registry/main/manifests.json | ||
- SENTRY_DSN=https://[email protected]/4505244431941632 | ||
|
||
|
||
caddy: | ||
container_name: caddy | ||
image: caddy:2.6.4-alpine | ||
restart: on-failure | ||
ports: | ||
- 8000:8000 | ||
volumes: | ||
- ./caddy/Caddyfile:/etc/caddy/Caddyfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
import axios from "axios"; | ||
import { getBackendUrlFromStore } from "shared/store/setting"; | ||
import { getBackendUrlFromStore } from "../store/setting"; | ||
|
||
const api = () => { | ||
const client = axios.create({ | ||
return axios.create({ | ||
baseURL: getBackendUrlFromStore(), | ||
headers: { | ||
"Content-Type": "application/json", | ||
}, | ||
}); | ||
|
||
return client; | ||
}; | ||
|
||
export default api; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters