diff options
| author | mo khan <mo@mokhan.ca> | 2025-05-11 20:24:35 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-05-11 21:22:02 -0600 |
| commit | 02b829852ce4eb9945d611c92e266813560fe6c2 (patch) | |
| tree | 1213782ed6d46fa86d564bedfeede6531711f90a | |
| parent | 3af897756d68a8bcac782369fd33f73a8a33c9c3 (diff) | |
chore: tidy up envoy path matchers
| -rw-r--r-- | envoy.yml | 39 |
1 files changed, 2 insertions, 37 deletions
@@ -97,26 +97,8 @@ static_resources: forward_bearer_token: true pass_through_matcher: - name: ":path" - string_match: - prefix: "/.well-known/" # temporary - - name: ":path" - string_match: - prefix: "/oauth/" # temporary - - name: ":path" - string_match: - suffix: ".html" - - name: ":path" - string_match: - suffix: ".ico" - - name: ":path" - string_match: - suffix: ".png" - - name: ":path" - string_match: - suffix: ".css" - - name: ":path" - string_match: - suffix: ".js" + safe_regex_match: + regex: .*\\.(css|js|png|html|ico)$ - name: ":path" string_match: exact: "/health" @@ -129,12 +111,6 @@ static_resources: - name: ":path" string_match: exact: "/dashboard/nav" - - name: ":path" - string_match: - prefix: "/session/" # temporary - - name: ":path" - string_match: - prefix: "/dashboard" # temporary redirect_path_matcher: path: exact: /callback @@ -176,17 +152,6 @@ static_resources: domains: ["*"] routes: - match: - prefix: "/.well-known/" # temporary - route: - cluster: oidc - timeout: 5s - auto_host_rewrite: true - - match: - prefix: "/oauth/" # temporary - route: - cluster: oidc - timeout: 5s - - match: prefix: "/" route: cluster: sparkle |
