VIATEUR-AI commited on
Commit
ae89f36
·
verified ·
1 Parent(s): a77ebb2

Create nginx.conf

Browse files
Files changed (1) hide show
  1. nginx.conf +16 -0
nginx.conf ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ server {
2
+ listen 7860;
3
+ server_name localhost;
4
+
5
+ root /usr/share/nginx/html;
6
+ index index.html index.htm;
7
+
8
+ location / {
9
+ try_files $uri $uri/ /index.html;
10
+ }
11
+
12
+ # Cache static assets
13
+ location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot|mp4|webm)$ {
14
+ expires 1y;
15
+ add_header Cache-Control "public, immutable";
16
+ }