improve docker

This commit is contained in:
2024-09-08 17:30:04 +07:00
parent 68df7076c1
commit e6d0eb9432
2 changed files with 4 additions and 4 deletions

View File

@@ -2,7 +2,7 @@ ARG NGINX_VERSION=1.27.1
FROM nginx:${NGINX_VERSION}-alpine
ENV LINK_PREFIX=""
ENV LINK_PATH="/"
COPY css /opt/litterlink/css
COPY fonts /opt/litterlink/fonts

View File

@@ -1,8 +1,8 @@
server {
listen 80;
location ~ ^$LINK_PREFIX/$ {
root /opt/litterlink/;
try_files /index.html =404;
location $LINK_PATH {
alias /opt/litterlink;
index index.html;
}
}