1 file changed +1 -0 lines changed etc/nginx-ingress/values.yaml +1 Original file line numberDiff line numberDiff line change @@ -3,6 +3,7 @@ 33 ## 44 55 controller: 6+ allowSnippetAnnotations:true 67 #-- Will add custom configuration options to Nginx https://kubernetes.github.io/ingr...
keyvaannmerged 1 commit intodevfrompvannierop-patch-1 Jul 17, 2024 +1−0 Conversation1Commits1Checks6Files changed1 Contributor pvannieropcommentedJul 16, 2024 pvannieroprequested a review fromkeyvaannJuly 16, 2024 15:56 pvannieropchanged the titleAllow snippet annotations for nginx ingressJul...
三、根据自动生成的nginx.conf改为使用configuration-snippet配置 annotations: nginx.ingress.kubernetes.io/configuration-snippet: | if ($request_method = 'OPTIONS') { more_set_headers "Access-Control-Allow-Origin: $http_origin"; more_set_headers 'Access-Control-Allow-Credentials: true'; more_set_hea...
\n\n As you can see, Pilar's conferencing policy prohibits annotations. Because this setting applies to the organizer of a conference that means that whiteboards will not be allowed in any meeting that Pilar organizes. It doesn't matter whether the other people in the meeting have ...
annotations: kubernetes.io/ingress.class: "nginx" nginx.ingress.kubernetes.io/configuration-snippet: | if ($http_origin ~* ((https?://(.+.)*(domain1|domain2).(?:net|com)$)) { set $cors "true"; } # Determine the HTTP request method used if ($request_method = 'OPTIONS') { set...
# Add a code snippet demonstrating how to use this GitHub Actions CI The Jenkins CI system has been replaced by GitHub Actions self-hosted runners. The GitHub Actions CI will run automatically when the "Run CICD" label is added to the PR. ...
Having foo.py: before each Python snippet in that file feels quite distracting to me if you're reading the test file "as documentation" (the aim for that file specifically is that it should double as both a test suite and documentation). I think this would also be improved by having ...
The possible problem with super happens in the following snippet: def implementation_only(C): return C class Base: def f(self, a: int) -> None: print("Base") print(a) class Left(Base): def f(self, a: int) -> None: print("Left.f") super().f(a) class Right(implementation_onl...
annotations: kubernetes.io/ingress.class: "nginx" nginx.ingress.kubernetes.io/configuration-snippet: | if ($http_origin ~* (^https?://([^/]+\.)*(localhost:4200|admin.example.com))) { set $cors "true"; } # Nginx doesn't support nested If statements. This is where things get slightl...