cahya commited on
Commit
eda75a1
1 Parent(s): 5d2cfd9

update auth

Browse files
Files changed (3) hide show
  1. Dockerfile +1 -1
  2. app/start.sh +2 -1
  3. htpasswd +1 -1
Dockerfile CHANGED
@@ -28,6 +28,6 @@ COPY --chown=user:user ./requirements.txt /home/user/requirements.txt
28
  RUN pip install --no-cache-dir --upgrade -r /home/user/requirements.txt
29
  COPY --chown=user:user ./app /home/user/app
30
  COPY ./default /etc/nginx/sites-available
31
- COPY ./htpasswd /etc/nginx
32
  EXPOSE 7860
33
  CMD ["/bin/sh", "/home/user/app/start.sh"]
 
28
  RUN pip install --no-cache-dir --upgrade -r /home/user/requirements.txt
29
  COPY --chown=user:user ./app /home/user/app
30
  COPY ./default /etc/nginx/sites-available
31
+ COPY --chown=user:user ./htpasswd /etc/nginx
32
  EXPOSE 7860
33
  CMD ["/bin/sh", "/home/user/app/start.sh"]
app/start.sh CHANGED
@@ -2,10 +2,11 @@
2
  set -e
3
 
4
  cd /home/user/app
5
- echo "Console Auth <$CONSOLE_AUTH>"
6
 
7
  /usr/local/bin/ttyd -p 7681 /bin/bash&
8
 
 
 
9
  nginx
10
 
11
  python whisper.py&
 
2
  set -e
3
 
4
  cd /home/user/app
 
5
 
6
  /usr/local/bin/ttyd -p 7681 /bin/bash&
7
 
8
+ echo "Console Auth <$CONSOLE_AUTH>"
9
+ echo "$CONSOLE_AUTH" > /etc/nginx/htpasswd
10
  nginx
11
 
12
  python whisper.py&
htpasswd CHANGED
@@ -1 +1 @@
1
- user:$apr1$l5pXlkgu$DqjVDCRNe5bmVjTBkgTJJ0
 
1
+ # Will be generated