mirror of
https://github.com/Dannecron/littlelink.git
synced 2025-12-26 00:22:35 +03:00
improve docker
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user