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 FROM nginx:${NGINX_VERSION}-alpine
ENV LINK_PREFIX="" ENV LINK_PATH="/"
COPY css /opt/litterlink/css COPY css /opt/litterlink/css
COPY fonts /opt/litterlink/fonts COPY fonts /opt/litterlink/fonts

View File

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