mirror of
https://github.com/KoriIku/luxirty-search
synced 2024-11-22 00:28:00 +00:00
commit
2393f8c456
@ -1,4 +1,5 @@
|
||||
FROM nginx:1.27
|
||||
COPY ./conf/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY ./dist/ /usr/share/nginx/html
|
||||
EXPOSE 80
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
|
17
conf/nginx.conf
Normal file
17
conf/nginx.conf
Normal file
@ -0,0 +1,17 @@
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name localhost;
|
||||
|
||||
access_log /var/log/nginx/host.access.log main;
|
||||
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root /usr/share/nginx/html;
|
||||
}
|
||||
}
|
@ -3,6 +3,7 @@ import Home from '@/components/Home.vue'
|
||||
import Results from '@/components/Results.vue'
|
||||
|
||||
const router = createRouter({
|
||||
mode: "history",
|
||||
history: createWebHistory(import.meta.env.BASE_URL),
|
||||
routes: [
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user