-
-
Save zukko78/7ea4b2e41d6c4f9595fc487fb1d485ee to your computer and use it in GitHub Desktop.
ingress nginx configuration snippet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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