Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

midascodebreaker's avatar

How to properly Configure Gzip in Forge if your Using Let's Encypt SSL Certificate?

Ive Finally Made a Conclusion that messing up with your Nginx Conf within /etc/nginx/nginx.conf file. I wanna use Gzip but , i dont know what taylor did behind the scene. Yes it is on By default, but when i try to add other mime types.

this is my reference: https://mattstauffer.co/blog/enabling-gzip-on-nginx-servers-including-laravel-forge

My Conclusion is that my Server Response Rate, Or Waiting Time Increases Dramatically Even if i Provisioned a larger Server in Digital Ocean. It makes no sense touching the gzip coz my server waiting time increases from 500ms to 60 secs... That is a lot of crap.

I dont know if anyone is experiencing this...

I dont wanna fiddle anymore of gzip until , someone or there is a latest Tutorial for that with the latest forge provisioned server.

I hope someone can help me thanks

0 likes
3 replies
rflipo-dev's avatar

I was wondering about this. Would be great if Taylor add a laracast about configuring gzip in Forge :)

stocksph's avatar

Just also wondering why the other gzip lines has been commented out by default on laravel forge?

    #gzip_vary on;
#gzip_proxied any;
#gzip_comp_level 6;
#gzip_buffers 16 8k;
#gzip_http_version 1.1;
#gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;

Shouldnt be more convenient and make the website faster if the other gzip lines are enabled by default?

Please or to participate in this conversation.