Commit ea105112 authored by Jorge Moratinos's avatar Jorge Moratinos
Browse files

Include a rule to allow customer to see swagger UI

parent 890e4898
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -120,7 +120,7 @@ for name, pkg in package_paths.items():
        openapi_file,             # relative to specification_dir (SERVICES_DIR)
        openapi_file,             # relative to specification_dir (SERVICES_DIR)
        arguments={"title": title},
        arguments={"title": title},
        pythonic_params=True,
        pythonic_params=True,
        base_path=base_path
        base_path="/helper/" + base_path
    )
    )




+7 −3
Original line number Original line Diff line number Diff line
@@ -43,8 +43,12 @@ http {
              # (ONLY DEVELOPMENT)Send the log directly to the console (useful in Docker or terminal)
              # (ONLY DEVELOPMENT)Send the log directly to the console (useful in Docker or terminal)
              # access_log /dev/stdout debug_map;
              # access_log /dev/stdout debug_map;


              location / {
              location ~^/(?<service_forwarding>[^/]+)(?:/(?<sub_api>[^/]+))?/(ui|openapi\.json|swagger\.json) {
                  proxy_pass $scheme://$http_host/api-invoker-management/v1/ui/;
                proxy_set_header Host $host;
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

                proxy_pass http://$service_forwarding:8080;
              }
              }


              location /api-invoker-management {
              location /api-invoker-management {
@@ -159,7 +163,7 @@ http {
                proxy_set_header Host $host;
                proxy_set_header Host $host;
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_pass http://helper:8080/;
                proxy_pass http://helper:8080;
              }
              }


        }
        }