Created
June 19, 2020 13:55
-
-
Save houstondapaz/eefecfda4710a7c05beed343d8a87c5b 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