Production ready

This commit is contained in:
Florian Sylvain
2023-03-09 12:24:50 +01:00
parent e06bd7fbcb
commit 2bb42e6aa1
8 changed files with 61 additions and 2 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
<meta charset="UTF-8">
<link rel="icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vite App</title>
<title>Quizz Paris Musées</title>
</head>
<body>
<div id="app"></div>
+30
View File
@@ -0,0 +1,30 @@
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name localhost;
location / {
root /app;
index index.html;
try_files $uri $uri/ /index.html;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
}
View File
+1
View File
@@ -21,5 +21,6 @@ export default defineConfig(({ command, mode }): UserConfig => {
...env2,
},
},
base: env1.FRONT_BASE_PATH ?? env2.FRONT_BASE_PATH ?? "/",
}
})