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 @@
- With more than 100 000 hosted videos, viewed more than 6 millions times and 20 000 users, - PeerTube is the decentralized free software alternative to videos platforms developed by Framasoft + Peertube is an open, federated alternative to Youtube without advertising or tracking. + On this site, you can find a good Peertube instance, with good rules, good moderation and most importantly a friendly community.
@@ -24,6 +24,7 @@ + @@ -141,8 +143,7 @@ .marketing { font-size: 16px; - margin: 30px auto; - width: 500px; + margin: 70px; text-align: center; @media screen and (max-width: $small-screen) {