diff --git a/gateway.yaml b/gateway.yaml index 37387a1..04af8dd 100644 --- a/gateway.yaml +++ b/gateway.yaml @@ -7,22 +7,20 @@ gateway: - logger proxies: - - id: "secnex-dev" - host: "dev.secnex.io" - target: "http://localhost:3003" + - id: "proxy-id" + host: "example.com" + target: "http://backend:3000" apis: - - id: "secnex-dev" - target: "https://httpbin.org" - - id: "secnex-public" - target: "https://httpbin.org" + - id: "api-id" + target: "https://api.example.com" routes: - - id: "secnex-dev" - path: "/api/v1/dev/*" + - id: "route-id" + path: "/api/v1/*" strip_prefix: enabled: true - prefix: "/api/v1/dev" + prefix: "/api/v1" security: auth: enabled: true @@ -33,25 +31,4 @@ routes: exclude: [] waf: enabled: true - methods: ["*"] - ip_addresses: - allow: - - "127.0.0.1" - block: - - "127.0.0.2" - - id: "secnex-public" - path: "/api/v1/public/*" - strip_prefix: - enabled: true - prefix: "/api/v1/public" - security: - auth: - enabled: false - type: "session" - header: "Authorization" - path: - include: [] - exclude: [] - waf: - enabled: true - methods: ["GET"] \ No newline at end of file + methods: ["GET", "POST"] \ No newline at end of file