nsarrazin HF staff commited on
Commit
5ace756
1 Parent(s): 26d6a30

fix cookies

Browse files
Files changed (2) hide show
  1. .template.env.local +1 -1
  2. Dockerfile +3 -0
.template.env.local CHANGED
@@ -6,7 +6,7 @@ MONGODB_DB_NAME=chat-ui
6
  MONGODB_DIRECT_CONNECTION=false
7
 
8
 
9
- COOKIE_NAME=${SPACE_ID}
10
  HF_ACCESS_TOKEN=#hf_<token> from from https://huggingface.co/settings/token
11
 
12
  # used to activate search with web functionality. disabled if not defined
 
6
  MONGODB_DIRECT_CONNECTION=false
7
 
8
 
9
+ COOKIE_NAME=chat-ui
10
  HF_ACCESS_TOKEN=#hf_<token> from from https://huggingface.co/settings/token
11
 
12
  # used to activate search with web functionality. disabled if not defined
Dockerfile CHANGED
@@ -21,12 +21,15 @@ COPY .template.env.local .template.env.local
21
  RUN --mount=type=secret,id=MODEL_NAME,mode=0444,required=true \
22
  --mount=type=secret,id=PREPROMPT,mode=0444,required=true \
23
  --mount=type=secret,id=MODEL_TEMPERATURE,mode=0444,required=true \
 
24
  MODEL_NAME=$(cat /run/secrets/MODEL_NAME) \
25
  && PREPROMPT=$(cat /run/secrets/PREPROMPT) \
26
  && MODEL_TEMPERATURE=$(cat /run/secrets/MODEL_TEMPERATURE) \
 
27
  && export MODEL_NAME \
28
  && export PREPROMPT \
29
  && export MODEL_TEMPERATURE \
 
30
  && envsubst < ".template.env.local" > ".env.local"
31
 
32
 
 
21
  RUN --mount=type=secret,id=MODEL_NAME,mode=0444,required=true \
22
  --mount=type=secret,id=PREPROMPT,mode=0444,required=true \
23
  --mount=type=secret,id=MODEL_TEMPERATURE,mode=0444,required=true \
24
+ --mount=type=secret,id=SPACE_HOST,mode=0444,required=true \
25
  MODEL_NAME=$(cat /run/secrets/MODEL_NAME) \
26
  && PREPROMPT=$(cat /run/secrets/PREPROMPT) \
27
  && MODEL_TEMPERATURE=$(cat /run/secrets/MODEL_TEMPERATURE) \
28
+ && SPACE_HOST=$(cat /run/secrets/SPACE_HOST) \
29
  && export MODEL_NAME \
30
  && export PREPROMPT \
31
  && export MODEL_TEMPERATURE \
32
+ && export SPACE_HOST \
33
  && envsubst < ".template.env.local" > ".env.local"
34
 
35