Daniel Kantor
commited on
Commit
·
51e3f6a
1
Parent(s):
58582d3
- docker-compose.yml +2 -2
- frontend/src/config/auth.js +3 -3
docker-compose.yml
CHANGED
@@ -20,14 +20,14 @@ services:
|
|
20 |
context: ./frontend
|
21 |
dockerfile: Dockerfile.dev
|
22 |
ports:
|
23 |
-
- "${FRONTEND_PORT:-
|
24 |
volumes:
|
25 |
- ./frontend:/app
|
26 |
- /app/node_modules
|
27 |
environment:
|
28 |
- NODE_ENV=${ENVIRONMENT:-development}
|
29 |
- CHOKIDAR_USEPOLLING=true
|
30 |
-
- PORT=${FRONTEND_PORT:-
|
31 |
command: npm start
|
32 |
stdin_open: true
|
33 |
tty: true
|
|
|
20 |
context: ./frontend
|
21 |
dockerfile: Dockerfile.dev
|
22 |
ports:
|
23 |
+
- "${FRONTEND_PORT:-7861}:7861"
|
24 |
volumes:
|
25 |
- ./frontend:/app
|
26 |
- /app/node_modules
|
27 |
environment:
|
28 |
- NODE_ENV=${ENVIRONMENT:-development}
|
29 |
- CHOKIDAR_USEPOLLING=true
|
30 |
+
- PORT=${FRONTEND_PORT:-7861}
|
31 |
command: npm start
|
32 |
stdin_open: true
|
33 |
tty: true
|
frontend/src/config/auth.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
export const HF_CONFIG = {
|
2 |
-
CLIENT_ID:
|
3 |
STORAGE_KEY: "hf_oauth",
|
4 |
SCOPE: "openid profile",
|
5 |
-
PROD_URL: "https://
|
6 |
-
DEV_URL: "http://localhost:
|
7 |
};
|
|
|
1 |
export const HF_CONFIG = {
|
2 |
+
CLIENT_ID: process.env.OAUTH_CLIENT_ID,
|
3 |
STORAGE_KEY: "hf_oauth",
|
4 |
SCOPE: "openid profile",
|
5 |
+
PROD_URL: "https://huggingface.co/spaces/stacklok/llm-security-leaderboard",
|
6 |
+
DEV_URL: "http://localhost:7861"
|
7 |
};
|