mirror of
https://github.com/Dannecron/littlelink.git
synced 2025-12-25 16:12:34 +03:00
[docker] allow use path prefix
This commit is contained in:
@@ -2,6 +2,8 @@ ARG NGINX_VERSION=1.27.1
|
||||
|
||||
FROM nginx:${NGINX_VERSION}-alpine
|
||||
|
||||
ENV LINK_PREFIX=""
|
||||
|
||||
COPY css /opt/litterlink/css
|
||||
COPY fonts /opt/litterlink/fonts
|
||||
COPY images /opt/litterlink/images
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
location / {
|
||||
root /opt/litterlink;
|
||||
index index.html;
|
||||
|
||||
location ~ ^$LINK_PREFIX/$ {
|
||||
root /opt/litterlink/;
|
||||
try_files /index.html =404;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user