feat: update source files, Dockerfile, vite config and service worker
This commit is contained in:
+13
-8
@@ -1,4 +1,4 @@
|
||||
FROM node:20 as builder
|
||||
FROM node:20 AS builder
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
# TODO: Remove this or review embedded variables
|
||||
@@ -20,19 +20,24 @@ RUN echo 'server { \
|
||||
root /usr/share/nginx/html; \
|
||||
index index.html; \
|
||||
location / { \
|
||||
try_files $uri $uri/ /index.html; \
|
||||
expires 30d; \
|
||||
add_header Cache-Control "public, no-transform"; \
|
||||
try_files $uri $uri/ /index.html; \
|
||||
expires 30d; \
|
||||
add_header Cache-Control "public, no-transform"; \
|
||||
} \
|
||||
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff2?)$ { \
|
||||
expires 30d; \
|
||||
add_header Cache-Control "public, no-transform"; \
|
||||
expires 30d; \
|
||||
add_header Cache-Control "public, no-transform"; \
|
||||
} \
|
||||
location /searxng-api/ { \
|
||||
proxy_pass https://search.kevlarai.com/; \
|
||||
proxy_ssl_server_name on; \
|
||||
proxy_set_header Host search.kevlarai.com; \
|
||||
} \
|
||||
location ~ /\. { \
|
||||
deny all; \
|
||||
deny all; \
|
||||
} \
|
||||
error_page 404 /index.html; \
|
||||
}' > /etc/nginx/conf.d/default.conf
|
||||
}' > /etc/nginx/conf.d/default.conf
|
||||
|
||||
# Set up permissions
|
||||
RUN chown -R nginx:nginx /usr/share/nginx/html \
|
||||
|
||||
Reference in New Issue
Block a user