[feature] add version route

This commit is contained in:
2023-04-03 09:59:39 +07:00
committed by Denis Savosin
parent bb03762e67
commit 2e9525350a
2 changed files with 7 additions and 0 deletions

View File

@@ -11,5 +11,7 @@ RUN npm run-script build
FROM nginx:1.23.2 as runtume
ENV APP_VERSION=latest
COPY ./nginx/templates /etc/nginx/templates
COPY --from=build /opt/neko/dist /opt/neko/dist

View File

@@ -14,4 +14,9 @@ server {
root /opt/neko/dist;
index index.html;
}
location /version {
default_type application/json;
return 200 '{"version": "$APP_VERSION"}';
}
}