mirror of
https://gitea.invidious.io/iv-org/invidious-redirect.git
synced 2024-08-15 00:53:24 +00:00
Fix nginx root location
Only index.html is accessed, no real subfolders
This commit is contained in:
parent
73ea88d4fc
commit
3c56df2d38
1 changed files with 2 additions and 0 deletions
|
@ -5,4 +5,6 @@ RUN npm install
|
|||
RUN npm run build
|
||||
|
||||
FROM nginx:alpine as app
|
||||
# fix nginx root location
|
||||
RUN sed -i 's|index index.html index.htm;|try_files $uri /index.html;|g' /etc/nginx/conf.d/default.conf
|
||||
COPY --from=build /app/build/ /usr/share/nginx/html/
|
||||
|
|
Loading…
Reference in a new issue