Skip to content

Instantly share code, notes, and snippets.

@mr-pascal
Created January 24, 2021 06:45
Show Gist options
  • Save mr-pascal/4ac80d521632a49e16547a2c68f76aaf to your computer and use it in GitHub Desktop.
Save mr-pascal/4ac80d521632a49e16547a2c68f76aaf to your computer and use it in GitHub Desktop.
server {
# $PORT will be provided by 'docker run'
listen $PORT;
server_name localhost;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri /index.html;
}
gzip on;
gzip_vary on;
gzip_min_length 10240;
gzip_proxied expired no-cache no-store private auth;
gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml;
gzip_disable "MSIE [1-6]\.";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment