-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: single-page application routing
- Loading branch information
1 parent
2477fc9
commit df1bc5f
Showing
2 changed files
with
19 additions
and
0 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
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,17 @@ | ||
server { | ||
listen 8080; | ||
root /usr/share/nginx/html; | ||
gzip on; | ||
gzip_types text/css application/javascript application/json image/svg+xml; | ||
gzip_comp_level 9; | ||
etag on; | ||
location / { | ||
try_files $uri $uri/ /index.html; | ||
} | ||
location /assets/ { | ||
add_header Cache-Control max-age=31536000; | ||
} | ||
location /index.html { | ||
add_header Cache-Control no-cache; | ||
} | ||
} |