diff --git a/ansible/templates/nginx.conf b/ansible/templates/nginx.conf index 6083d8b..f58f042 100644 --- a/ansible/templates/nginx.conf +++ b/ansible/templates/nginx.conf @@ -29,13 +29,6 @@ server { # Hide nginx version server_tokens off; - # Enable compression for JS/CSS/HTML bundle, for improved client load times. - # It might be nice to compress JSON, but leaving that out to protect against potential - # compression+encryption information leak attacks like BREACH. - gzip on; - gzip_types text/css application/javascript; - gzip_vary on; - # Only connect to this site via HTTPS add_header Strict-Transport-Security "max-age=63072000"; @@ -45,9 +38,6 @@ server { add_header X-Frame-Options "DENY"; add_header X-XSS-Protection "1; mode=block"; - # Upload limit for pictshare - client_max_body_size 50M; - location / { proxy_pass http://0.0.0.0:8080; proxy_set_header X-Real-IP $remote_addr; diff --git a/docker/nginx.conf b/docker/nginx.conf index ba372e2..9707049 100644 --- a/docker/nginx.conf +++ b/docker/nginx.conf @@ -17,6 +17,17 @@ http { server { listen 80; server_name localhost; + + # Hide nginx version + server_tokens off; + + # TODO: this is not really working + gzip on; + gzip_types text/css application/javascript application/json text/vtt text/html image/svg+xml; + gzip_vary on; + + # TODO: maybe setup cache as well + location / { root /app; index index.html; diff --git a/public/index.html b/public/index.html index 0ea4ea9..8b04723 100644 --- a/public/index.html +++ b/public/index.html @@ -21,6 +21,11 @@ + + + + +
diff --git a/src/views/Home.vue b/src/views/Home.vue index de548b8..e995eaa 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -11,8 +11,8 @@