Skip to content

Commit

Permalink
Chore: Update new env and commit for app-backend
Browse files Browse the repository at this point in the history
  • Loading branch information
Hien To committed Aug 25, 2023
1 parent 22c73ba commit afbdec2
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 4 deletions.
4 changes: 3 additions & 1 deletion conf/sample.env_app-backend
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ HASURA_GRAPHQL_ENABLED_LOG_TYPES=startup, http-log, webhook-log, websocket-log,
HASURA_GRAPHQL_ADMIN_SECRET=myadminsecretkey
HASURA_GRAPHQL_UNAUTHORIZED_ROLE="public"
HASURA_GRAPHQL_METADATA_DEFAULTS='{"backend_configs":{"dataconnector":{"athena":{"uri":"http://data-connector-agent:8081/api/v1/athena"},"mariadb":{"uri":"http://data-connector-agent:8081/api/v1/mariadb"},"mysql8":{"uri":"http://data-connector-agent:8081/api/v1/mysql"},"oracle":{"uri":"http://data-connector-agent:8081/api/v1/oracle"},"snowflake":{"uri":"http://data-connector-agent:8081/api/v1/snowflake"}}}}'
HASURA_GRAPHQL_JWT_SECRET={"type": "RS256", "key": "-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----"}
HASURA_GRAPHQL_JWT_SECRET={"jwk_url": "http://keycloak:8088/realms/hasura/protocol/openid-connect/certs"}

# Environment variable for auto migrate
HASURA_GRAPHQL_MIGRATIONS_DIR=/migrations
HASURA_GRAPHQL_METADATA_DIR=/metadata
HASURA_GRAPHQL_ENABLE_CONSOLE='true'
HASURA_ACTION_STABLE_DIFFUSION_URL=http://stablediffusion:8087
HASURA_EVENTS_HOOK_URL="http://worker:8787"
3 changes: 2 additions & 1 deletion conf/sample.env_web-client
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=my-secret
END_SESSION_URL=http://keycloak:8088/realms/new-realm/protocol/openid-connect/logout
REFRESH_TOKEN_URL=http://keycloak:8088/realms/new-realm/protocol/openid-connect/token
HASURA_ADMIN_TOKEN=myadminsecretkey
HASURA_ADMIN_TOKEN=myadminsecretkey
NEXT_PUBLIC_GRAPHQL_ENGINE_URL=hasura:8080
14 changes: 14 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,20 @@ services:
networks:
jan_community:

worker:
build:
context: ./app-backend
dockerfile: ./worker/Dockerfile
restart: always
environment:
- "NODE_ENV=development"
volumes:
- .:/worker
ports:
- "8787:8787"
networks:
jan_community:

data-connector-agent:
image: hasura/graphql-data-connector:v2.31.0
restart: always
Expand Down
2 changes: 1 addition & 1 deletion web-client
Submodule web-client updated 42 files
+6 −0 app/_components/AdvancedPrompt/index.tsx
+18 −9 app/_components/ChatBody/index.tsx
+14 −1 app/_components/ChatContainer/index.tsx
+2 −2 app/_components/CompactSideBar/index.tsx
+1 −1 app/_components/ConversationalCard/index.tsx
+1 −1 app/_components/GenerateImageCard/index.tsx
+4 −4 app/_components/GenerativeSampleContainer/index.tsx
+1 −1 app/_components/Header/index.tsx
+1 −1 app/_components/HistoryItem/index.tsx
+4 −4 app/_components/HistoryList/index.tsx
+25 −3 app/_components/InputToolbar/index.tsx
+5 −5 app/_components/ModelDetailSideBar/index.tsx
+1 −1 app/_components/OverviewPane.tsx
+4 −4 app/_components/SampleLlmContainer/index.tsx
+22 −1 app/_components/SimpleImageMessage/index.tsx
+55 −32 app/_components/SimpleTextMessage/index.tsx
+1 −1 app/_components/Slide/index.tsx
+1 −1 app/_components/UserProfileDropDown/index.tsx
+2 −2 app/_components/UserToolbar/index.tsx
+20 −4 app/_hooks/useCreateConversation.ts
+27 −61 app/_hooks/useGetUserConversations.ts
+3 −3 app/_models/AiModel.ts
+2 −2 app/_models/AiModelList.ts
+1 −1 app/_models/ChatMessage.ts
+2 −2 app/_models/Conversation.ts
+274 −212 app/_models/History.ts
+1 −325 app/_services/api/index.ts
+0 −19 app/_services/conversations.ts
+0 −16 app/_services/products.ts
+0 −16 app/_services/prompts.ts
+48 −15 app/page.client.tsx
+3 −0 graphql/fragments/conversation.graphql
+4 −0 graphql/fragments/message.graphql
+28 −8 graphql/generated/gql.ts
+150 −22 graphql/generated/graphql.ts
+2 −2 graphql/mutations/createConversation.graphql
+6 −4 graphql/mutations/createMessage.graphql
+19 −0 graphql/mutations/imageGeneration.graphql
+5 −0 graphql/mutations/updateMessage.graphql
+14 −0 graphql/queries/getConversationMessages.graphql
+6 −0 graphql/subscriptions/subscribeMessage.graphql
+5 −5 package.json

0 comments on commit afbdec2

Please sign in to comment.