-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Faizal Andyka
committed
Jul 16, 2021
1 parent
6dcd240
commit 3e7b863
Showing
4 changed files
with
82 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
server { | ||
listen 80; | ||
server_name localhost; | ||
root /usr/share/nginx/html; | ||
index index.html; | ||
|
||
location / { | ||
try_files $uri $uri/ /index.html; | ||
|
||
if ($request_method = OPTIONS) { | ||
return 204; | ||
} | ||
|
||
add_header Access-Control-Allow-Origin *; | ||
add_header Access-Control-Max-Age 3600; | ||
add_header Access-Control-Expose-Headers Content-Length; | ||
add_header Access-Control-Allow-Headers Range; | ||
} | ||
|
||
location ~* \.(eot|woff|woff2|ttf|otf)$ { | ||
expires 30d; | ||
add_header Cache-Control "public"; | ||
|
||
types {application/vnd.ms-fontobject eot;} | ||
types {application/font-woff woff;} | ||
types {font/x-woff woff2;} | ||
types {font/truetype ttf;} | ||
types {font/opentype otf;} | ||
} | ||
|
||
location ~* \.(jpg|jpeg|png|gif|ico|svg)$ { | ||
expires 30d; | ||
add_header Cache-Control "public"; | ||
} | ||
|
||
location ~* \.(css|js)$ { | ||
expires 7d; | ||
add_header Cache-Control "no-cache, public, must-revalidate, proxy-revalidate"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
server { | ||
listen 80; | ||
server_name localhost; | ||
root /usr/share/nginx/html; | ||
index index.html; | ||
|
||
location / { | ||
try_files $uri $uri/ /index.html; | ||
|
||
if ($request_method = OPTIONS) { | ||
return 204; | ||
} | ||
|
||
add_header Access-Control-Allow-Origin *; | ||
add_header Access-Control-Max-Age 3600; | ||
add_header Access-Control-Expose-Headers Content-Length; | ||
add_header Access-Control-Allow-Headers Range; | ||
} | ||
|
||
location ~* \.(eot|woff|woff2|ttf|otf)$ { | ||
expires 30d; | ||
add_header Cache-Control "public"; | ||
|
||
types {application/vnd.ms-fontobject eot;} | ||
types {application/font-woff woff;} | ||
types {font/x-woff woff2;} | ||
types {font/truetype ttf;} | ||
types {font/opentype otf;} | ||
} | ||
|
||
location ~* \.(jpg|jpeg|png|gif|ico|svg)$ { | ||
expires 30d; | ||
add_header Cache-Control "public"; | ||
} | ||
|
||
location ~* \.(css|js)$ { | ||
expires 7d; | ||
add_header Cache-Control "no-cache, public, must-revalidate, proxy-revalidate"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -100,6 +100,6 @@ | |
"vuex": "^4.0.0" | ||
}, | ||
"volta": { | ||
"node": "14.16.1" | ||
"node": "14.17.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters