Skip to content

Instantly share code, notes, and snippets.

@criloz
Last active March 25, 2017 10:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save criloz/709e727a192bc25acb882a3dd1fc4f8e to your computer and use it in GitHub Desktop.
Save criloz/709e727a192bc25acb882a3dd1fc4f8e to your computer and use it in GitHub Desktop.
api: https://lab.example.com/v1
kind: AdminService
spec:
meta:
roleId: frontend
subDomain: branch-1.dev.
name: transactions-api
description: branch for the new login features
tags:
- frontend
- web app
- login
longDescription:
local:
content: |
# new features
* support menshend for login
resolver:
lua:
content: |
function getBackend (tokenInfo, request)
tt = {}
tt["BaseUrl"] = "http://branch-1.kuebernetes-dev-namespace"
tt["HeaderMap"] = {}
tt["HeaderMap"]["X-User"] = tokenInfo.Data.display_name
return tt
end
strategy:
proxy:
csrf: yes
cors:
allowedOrigins:
- "*.dev.lab.example.com"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment