do gzip compression in nginx

This commit is contained in:
keyan 2021-10-06 20:26:57 -07:00
parent 782dc78652
commit 9ed7abde0e
2 changed files with 2 additions and 0 deletions

View File

@ -1,4 +1,5 @@
listen 443 default_server; listen 443 default_server;
gzip on;
location / { location / {
set $redirect 0; set $redirect 0;
if ($server_port != 443) { if ($server_port != 443) {

View File

@ -2,6 +2,7 @@ const { withPlausibleProxy } = require('next-plausible')
const { RuntimeSources } = require('/opt/elasticbeanstalk/deployment/app_version_manifest.json') // eslint-disable-line const { RuntimeSources } = require('/opt/elasticbeanstalk/deployment/app_version_manifest.json') // eslint-disable-line
module.exports = withPlausibleProxy()({ module.exports = withPlausibleProxy()({
compress: false,
generateBuildId: async () => { generateBuildId: async () => {
// use the app version which eb doesn't otherwise give us // use the app version which eb doesn't otherwise give us
// as the build id // as the build id