- Use nginx to get access token from cookie. If avaliable, set Authorization: Bearer [access_token]
- Use ealen/echo-server to simulate the origin API server
- By convention, the origin API server DNS is origin-[api service]
- API service host name: prkwan.[local server ip].nip.io
- Origin API service host name: origin-prkwan.[local server ip].nip.io
- For example: prkwan.192.168.20.147.nip.io
curl 'http://prkwan.192.168.20.147.nip.io:8888/api/prkwan?verify=cookie' \
-H 'Cookie: access_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOjIsInVzZXJuYW1lIjoibWFyaWEiLCJyb2xlcyI6WyJndWVzdCIsInVzZXIiXSwiaWF0IjoxNjkyMzUxNzU4LCJleHAiOjE2OTIzNTIwNTh9.GOqkLFIqKN2DGXpanBGKfbGfETnbM9ge3-FMltBLyhQ' | jq