SeanCondon | 3c3d08f | 2022-05-27 11:39:58 +0100 | [diff] [blame] | 1 | # SPDX-FileCopyrightText: 2022-present Intel Corporation |
| 2 | # |
| 3 | # SPDX-License-Identifier: Apache-2.0 |
| 4 | |
| 5 | apiVersion: v1 |
| 6 | kind: ConfigMap |
| 7 | metadata: |
Ray Milkey | 6b2f4d9 | 2022-07-06 16:14:30 -0700 | [diff] [blame] | 8 | name: {{ .Chart.Name }}-fabric-test-dummy |
SeanCondon | 3c3d08f | 2022-05-27 11:39:58 +0100 | [diff] [blame] | 9 | namespace: {{ .Release.Namespace }} |
| 10 | data: |
Scott Baker | 8096ce7 | 2022-06-08 11:30:26 -0700 | [diff] [blame] | 11 | fabric-test-dummy.conf: |- |
SeanCondon | 3c3d08f | 2022-05-27 11:39:58 +0100 | [diff] [blame] | 12 | log_format client '$remote_addr - $remote_user $request_time $upstream_response_time ' |
| 13 | '[$time_local] "$request" $status $body_bytes_sent $request_body "$http_referer" ' |
| 14 | '"$http_user_agent" "$http_x_forwarded_for"'; |
| 15 | |
| 16 | server { |
| 17 | listen 0.0.0.0:8080; |
| 18 | default_type application/json; |
| 19 | access_log /opt/bitnami/nginx/logs/access.log client; |
| 20 | |
| 21 | # You can provide a special subPath or the root |
| 22 | location = /v1/config { |
| 23 | root /; |
| 24 | proxy_pass http://127.0.0.1:8080/post_dummy; |
| 25 | } |
| 26 | location = /v1/config/policies { |
| 27 | root /; |
| 28 | proxy_pass http://127.0.0.1:8080/post_dummy; |
| 29 | } |
| 30 | location = /v1/config/imsis { |
| 31 | root /; |
| 32 | proxy_pass http://127.0.0.1:8080/post_dummy; |
| 33 | } |
| 34 | location /v1/config/5g { |
| 35 | rewrite ^/v1/config/5g/.* /v1/config/5g break; |
| 36 | proxy_pass http://127.0.0.1:8080/post_dummy; |
| 37 | } |
| 38 | location /api/subscriber { |
| 39 | rewrite ^/api/subscriber/.* /api/subscriber break; |
| 40 | proxy_pass http://127.0.0.1:8080/post_dummy; |
| 41 | } |
Scott Baker | 8096ce7 | 2022-06-08 11:30:26 -0700 | [diff] [blame] | 42 | location /onos/v1/network/configuration { |
| 43 | root /; |
| 44 | proxy_pass http://127.0.0.1:8080/post_dummy; |
| 45 | } |
SeanCondon | 3c3d08f | 2022-05-27 11:39:58 +0100 | [diff] [blame] | 46 | location = /post_dummy { |
| 47 | # turn off logging here to avoid double logging |
| 48 | access_log off; |
| 49 | return 200; |
| 50 | } |
| 51 | error_page 405 =200 $uri; |
| 52 | } |