Skip to content

Instantly share code, notes, and snippets.

@zukko78
Forked from houstondapaz/ingres.yaml
Created July 4, 2022 17:00
Show Gist options
  • Save zukko78/7ea4b2e41d6c4f9595fc487fb1d485ee to your computer and use it in GitHub Desktop.
Save zukko78/7ea4b2e41d6c4f9595fc487fb1d485ee to your computer and use it in GitHub Desktop.
ingress nginx configuration snippet
nginx.ingress.kubernetes.io/configuration-snippet: |
more_set_headers "Server:SEU_SERVER";
more_set_headers "cache-Control: no-cache, no-store";
more_set_headers "pragma: no-cache";
if ($request_uri ~* \.(?:ico|css|js|gif|jpe?g|png|svg|woff2|woff|ttf|eo|mp3)$) {
more_set_headers "cache-control: public, must-revalidate, proxy-revalidate";
more_set_headers "pragma: public";
expires max;
}
rewrite ^/SUB_PATH(/?)(.*)$ /$2 break;
rewrite /(.*)$ /$1 break;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment