Skip to content

Commit

Permalink
vue-web nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
d2jvkpn committed Dec 31, 2024
1 parent f05d368 commit 61e8fab
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions container/vue-web/containers/static.nginx.conf
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
server {
listen 80 default_server;
listen [::]:80 default_server;
charset utf-8;
gzip on;

server_tokens off;
# server_name your_site.com;
server_name localhost;
charset utf-8;

gzip on;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
gzip_comp_level 5; # 1-9
gzip_min_length 1024;

# sendfile on;
# autoindex on; # enable directory listing output
Expand All @@ -22,8 +27,8 @@ server {
try_files $uri $uri/index.html /index.html =404;
}

#access_log /apps/logs/nginx.log;
#error_log /apps/logs/nginx.error;
#access_log /apps/logs/app.nginx.log;
#error_log /apps/logs/app.nginx.error;

location ~* \.(css|js|png|jpg|jpeg|gif|gz|svg|mp4|ogg|ogv|webm|htc|xml|woff)$ {
access_log off;
Expand Down

0 comments on commit 61e8fab

Please sign in to comment.